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
@@ -68,6 +68,38 @@ const config = [
68
68
exportdefaultconfig;
69
69
```
70
70
71
+
The general starting rulesets you can extend from in flat config are:
72
+
73
+
*`jsdoc.configs['flat/recommended']`: Recommended starting rules for enforcing proper tag values, that common tags exist, and that tags are formatted and styled consistently
74
+
*`jsdoc.configs['flat/recommended-error']`: The same, reporting with failing errors instead of mere warnings
75
+
*`jsdoc.configs['flat/recommended-typescript']`: A similar recommended starting list, adjusted for projects using TypeScript syntax (and not just "typescript" `mode`)
76
+
*`jsdoc.configs['flat/recommended-typescript-error']`: The same, reporting with failing errors instead of mere warnings
77
+
*`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`)
78
+
*`jsdoc.configs['flat/recommended-typescript-flavor-error']`: The same, reporting with failing errors instead of mere warnings
79
+
80
+
#### Granular Flat Configs
81
+
82
+
There also exist several more granular, standalone TypeScript rulesets you can extend from.
83
+
These each only enable a subset of the recommended starting rules:
84
+
85
+
*`jsdoc.configs['flat/logical-typescript']`: Includes only the rules that enforce proper tag values
86
+
*`jsdoc.configs['flat/logical-typescript-error']`: The same, reporting with failing errors instead of mere warnings
87
+
*`jsdoc.configs['flat/requirements-typescript']`: Includes only the rules that enforce tags exist
88
+
*`jsdoc.configs['flat/requirements-typescript-error']`: The same, reporting with failing errors instead of mere warnings
89
+
*`jsdoc.configs['flat/stylistic-typescript']`: Includes only the rules that enforce clear, consistent tag formatting and styles
90
+
*`jsdoc.configs['flat/stylistic-typescript-error']`: The same, reporting with failing errors instead of mere warnings
91
+
92
+
For example, to enforce only that any JSDoc tags are valid and styled consistently, without enforcing that they must always exist:
0 commit comments