Skip to content

Commit

Permalink
chore: use eslint-plugin-jsdoc's flat config (#17516)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Sep 1, 2023
1 parent 926a286 commit a40fa50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-config-eslint/base.js
Expand Up @@ -9,7 +9,6 @@ const unicorn = require("eslint-plugin-unicorn");
* the plugins' configs are not updated to support the flat config,
* need to manually update the `plugins` property
*/
jsdoc.configs.recommended.plugins = { jsdoc };
eslintComments.configs.recommended.plugins = { "eslint-comments": eslintComments };

// extends eslint recommended config
Expand Down Expand Up @@ -262,7 +261,7 @@ const jsConfigs = [js.configs.recommended, {
}];

// extends eslint-plugin-jsdoc's recommended config
const jsdocConfigs = [jsdoc.configs.recommended, {
const jsdocConfigs = [jsdoc.configs["flat/recommended"], {
settings: {
jsdoc: {
mode: "typescript",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-eslint/package.json
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@eslint/js": "^8.42.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jsdoc": "^46.2.5",
"eslint-plugin-jsdoc": "^46.5.1",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-unicorn": "^42.0.0"
},
Expand Down

0 comments on commit a40fa50

Please sign in to comment.