Skip to content

Commit fdb4a28

Browse files
committed
ci: add types to jsdoc eslint config wd-270
1 parent 0ee72db commit fdb4a28

File tree

4 files changed

+18
-21
lines changed

4 files changed

+18
-21
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ let jsdocConfig = {
8787
jsdoc,
8888
},
8989
rules: {
90-
...jsdoc.configs[`recommended-typescript-flavor-error`].rules,
90+
...jsdoc.configs[`flat/recommended-typescript-flavor-error`].rules,
9191
'jsdoc/no-undefined-types': [`error`],
9292
'jsdoc/require-jsdoc': [
9393
`error`,

package-lock.json

Lines changed: 16 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"eslint": "8.53.0",
5656
"eslint-import-resolver-typescript": "3.6.1",
5757
"eslint-plugin-import": "2.29.0",
58-
"eslint-plugin-jsdoc": "46.9.0",
58+
"eslint-plugin-jsdoc": "47.0.2",
5959
"eslint-plugin-perfectionist": "2.5.0",
6060
"eslint-plugin-simple-import-sort": "10.0.0",
6161
"eslint-plugin-sonarjs": "0.23.0",

source/scripts/packages.d.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ declare module 'eslint-plugin-import' {
3636
}
3737
}
3838

39-
declare module 'eslint-plugin-jsdoc' {
40-
import { type Linter } from 'eslint'
41-
42-
const configs: Record<
43-
'recommended-typescript-flavor-error',
44-
Required<Linter.FlatConfig>
45-
>
46-
47-
export default {
48-
configs,
49-
}
50-
}
51-
5239
declare module '@typescript-eslint/eslint-plugin' {
5340
import { type Linter } from 'eslint'
5441

0 commit comments

Comments
 (0)