You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,38 @@ const config = [
67
67
exportdefaultconfig;
68
68
```
69
69
70
+
The general starting rulesets you can extend from in flat config are:
71
+
72
+
*`jsdoc.configs['flat/recommended']`: Recommended starting rules for enforcing proper tag values, that common tags exist, and that tags are formatted and styled consistently
73
+
*`jsdoc.configs['flat/recommended-error']`: The same, reporting with failing errors instead of mere warnings
74
+
*`jsdoc.configs['flat/recommended-typescript']`: A similar recommended starting list, adjusted for projects using TypeScript syntax (and not just "typescript" `mode`)
75
+
*`jsdoc.configs['flat/recommended-typescript-error']`: The same, reporting with failing errors instead of mere warnings
76
+
*`jsdoc.configs['flat/recommended-typescript-flavor']`: A similar recommended starting list, adjusted for projects using JavaScript syntax (source files that are still `.js`) but using TypeScript flavor within JSDoc (i.e., the default "typescript" `mode` in `eslint-plugin-jsdoc`)
77
+
*`jsdoc.configs['flat/recommended-typescript-flavor-error']`: The same, reporting with failing errors instead of mere warnings
78
+
79
+
#### Granular Flat Configs
80
+
81
+
There also exist several more granular, standalone TypeScript rulesets you can extend from.
82
+
These each only enable a subset of the recommended starting rules:
83
+
84
+
*`jsdoc.configs['flat/logical-typescript']`: Includes only the rules that enforce proper tag values
85
+
*`jsdoc.configs['flat/logical-typescript-error']`: The same, reporting with failing errors instead of mere warnings
86
+
*`jsdoc.configs['flat/requirements-typescript']`: Includes only the rules that enforce tags exist
87
+
*`jsdoc.configs['flat/requirements-typescript-error']`: The same, reporting with failing errors instead of mere warnings
88
+
*`jsdoc.configs['flat/stylistic-typescript']`: Includes only the rules that enforce clear, consistent tag formatting and styles
89
+
*`jsdoc.configs['flat/stylistic-typescript-error']`: The same, reporting with failing errors instead of mere warnings
90
+
91
+
For example, to enforce only that any JSDoc tags are valid and styled consistently, without enforcing that they must always exist:
0 commit comments