Skip to content

Commit a40fa50

Browse files
authoredSep 1, 2023
chore: use eslint-plugin-jsdoc's flat config (#17516)
1 parent 926a286 commit a40fa50

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎packages/eslint-config-eslint/base.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const unicorn = require("eslint-plugin-unicorn");
99
* the plugins' configs are not updated to support the flat config,
1010
* need to manually update the `plugins` property
1111
*/
12-
jsdoc.configs.recommended.plugins = { jsdoc };
1312
eslintComments.configs.recommended.plugins = { "eslint-comments": eslintComments };
1413

1514
// extends eslint recommended config
@@ -262,7 +261,7 @@ const jsConfigs = [js.configs.recommended, {
262261
}];
263262

264263
// extends eslint-plugin-jsdoc's recommended config
265-
const jsdocConfigs = [jsdoc.configs.recommended, {
264+
const jsdocConfigs = [jsdoc.configs["flat/recommended"], {
266265
settings: {
267266
jsdoc: {
268267
mode: "typescript",

‎packages/eslint-config-eslint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"@eslint/js": "^8.42.0",
3232
"eslint-plugin-eslint-comments": "^3.2.0",
33-
"eslint-plugin-jsdoc": "^46.2.5",
33+
"eslint-plugin-jsdoc": "^46.5.1",
3434
"eslint-plugin-n": "^16.0.0",
3535
"eslint-plugin-unicorn": "^42.0.0"
3636
},

0 commit comments

Comments
 (0)
Please sign in to comment.