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
{{ message }}
Repository navigation
Commit a96bc7c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .README/README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,8 @@ The general starting rulesets you can extend from in flat config are:
138
138
-`jsdoc.configs['flat/recommended-typescript-error']`: The same, reporting with failing errors instead of mere warnings
139
139
-`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`)
140
140
-`jsdoc.configs['flat/recommended-typescript-flavor-error']`: The same, reporting with failing errors instead of mere warnings
141
+
-`jsdoc.configs['flat/recommended-tsdoc']`: Like `flat/recommended-typescript` but with `require-throws-type`, `require-yields-type`, and `require-next-type` turned off, for use with [TSDoc](https://tsdoc.org/) (e.g., [TypeDoc](https://typedoc.org/))
142
+
-`jsdoc.configs['flat/recommended-tsdoc-error']`: The same, reporting with failing errors instead of mere warnings
141
143
-`jsdoc.configs['flat/recommended-mixed']`: A combination of `flat/recommended-typescript-flavor` and `flat/recommended-typescript` with automatic assignment of subconfig based on file extension (`**/*.{js,jsx,cjs,mjs}` and `**/*.{ts,tsx,cts,mts}`, respectively)
142
144
143
145
#### Granular Flat Configs
@@ -351,6 +353,26 @@ use:
351
353
}
352
354
```
353
355
356
+
If you are using [TSDoc](https://tsdoc.org/) (e.g., with [TSDoc](https://tsdoc.org/) or
357
+
[TypeDoc](https://typedoc.org/)), you may use the `tsdoc` config, which is like
358
+
`recommended-typescript` but additionally turns off `require-throws-type`,
359
+
`require-yields-type`, and `require-next-type` (since TSDoc does not support
360
+
`{Type}` annotations on those tags):
361
+
362
+
```json
363
+
{
364
+
"extends": ["plugin:jsdoc/recommended-tsdoc"]
365
+
}
366
+
```
367
+
368
+
...or to report with failing errors instead of mere warnings:
Rules may, as per the [ESLint user guide](https://eslint.org/docs/user-guide/configuring), have their own individual options. In `eslint-plugin-jsdoc`, a few options,
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,8 @@ The general starting rulesets you can extend from in flat config are:
159
159
-`jsdoc.configs['flat/recommended-typescript-error']`: The same, reporting with failing errors instead of mere warnings
160
160
-`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`)
161
161
-`jsdoc.configs['flat/recommended-typescript-flavor-error']`: The same, reporting with failing errors instead of mere warnings
162
+
-`jsdoc.configs['flat/recommended-tsdoc']`: Like `flat/recommended-typescript` but with `require-throws-type`, `require-yields-type`, and `require-next-type` turned off, for use with [TSDoc](https://tsdoc.org/) (e.g., [TypeDoc](https://typedoc.org/))
163
+
-`jsdoc.configs['flat/recommended-tsdoc-error']`: The same, reporting with failing errors instead of mere warnings
162
164
-`jsdoc.configs['flat/recommended-mixed']`: A combination of `flat/recommended-typescript-flavor` and `flat/recommended-typescript` with automatic assignment of subconfig based on file extension (`**/*.{js,jsx,cjs,mjs}` and `**/*.{ts,tsx,cts,mts}`, respectively)
0 commit comments