|
2 | 2 |
|
3 | 3 | const js = require("@eslint/js"); |
4 | 4 | const jsdoc = require("eslint-plugin-jsdoc"); |
5 | | -const eslintComments = require("eslint-plugin-eslint-comments"); |
| 5 | +const eslintCommentsPluginConfigs = require("@eslint-community/eslint-plugin-eslint-comments/configs"); |
6 | 6 | const unicorn = require("eslint-plugin-unicorn"); |
7 | 7 |
|
8 | | -/* |
9 | | - * the plugins' configs are not updated to support the flat config, |
10 | | - * need to manually update the `plugins` property |
11 | | - */ |
12 | | -eslintComments.configs.recommended.plugins = { "eslint-comments": eslintComments }; |
13 | | - |
14 | 8 | // extends eslint recommended config |
15 | 9 | const jsConfigs = [js.configs.recommended, { |
16 | 10 | rules: { |
@@ -373,12 +367,12 @@ const unicornConfigs = [{ |
373 | 367 | } |
374 | 368 | }]; |
375 | 369 |
|
376 | | -// extends eslint-plugin-eslint-comments's recommended config |
377 | | -const eslintCommentsConfigs = [eslintComments.configs.recommended, { |
| 370 | +// extends @eslint-community/eslint-plugin-eslint-comments's recommended config |
| 371 | +const eslintCommentsConfigs = [eslintCommentsPluginConfigs.recommended, { |
378 | 372 | rules: { |
379 | | - "eslint-comments/disable-enable-pair": ["error"], |
380 | | - "eslint-comments/no-unused-disable": "error", |
381 | | - "eslint-comments/require-description": "error" |
| 373 | + "@eslint-community/eslint-comments/disable-enable-pair": ["error"], |
| 374 | + "@eslint-community/eslint-comments/no-unused-disable": "error", |
| 375 | + "@eslint-community/eslint-comments/require-description": "error" |
382 | 376 | } |
383 | 377 | }]; |
384 | 378 |
|
|
0 commit comments