diff --git a/.eslintrc.js b/.eslintrc.js index 22dfbbdf2..70f54bac1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,14 +6,14 @@ module.exports = { parser: require.resolve('@typescript-eslint/parser'), extends: [ 'plugin:eslint-plugin/recommended', - 'plugin:eslint-comments/recommended', + 'plugin:@eslint-community/eslint-comments/recommended', 'plugin:n/recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:prettier/recommended', ], plugins: [ 'eslint-plugin', - 'eslint-comments', + '@eslint-community/eslint-comments', 'n', 'import', '@typescript-eslint', @@ -37,7 +37,7 @@ module.exports = { ], '@typescript-eslint/no-import-type-side-effects': 'error', '@typescript-eslint/no-unused-vars': 'error', - 'eslint-comments/no-unused-disable': 'error', + '@eslint-community/eslint-comments/no-unused-disable': 'error', 'eslint-plugin/require-meta-docs-description': [ 'error', { pattern: '^(Enforce|Require|Disallow|Suggest|Prefer)' }, diff --git a/package.json b/package.json index b6e3dc591..db75155b0 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@babel/preset-typescript": "^7.3.3", "@commitlint/cli": "^17.0.3", "@commitlint/config-conventional": "^17.0.3", + "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", "@schemastore/package": "^0.0.10", "@semantic-release/changelog": "^6.0.0", "@semantic-release/git": "^10.0.0", @@ -83,7 +84,6 @@ "eslint": "^7.0.0 || ^8.0.0", "eslint-config-prettier": "^9.0.0", "eslint-doc-generator": "^1.0.0", - "eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-eslint-plugin": "^6.0.0", "eslint-plugin-import": "^2.25.1", "eslint-plugin-n": "^17.0.0", diff --git a/yarn.lock b/yarn.lock index 447613ed1..45366ef09 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1628,6 +1628,18 @@ __metadata: languageName: node linkType: hard +"@eslint-community/eslint-plugin-eslint-comments@npm:^4.3.0": + version: 4.3.0 + resolution: "@eslint-community/eslint-plugin-eslint-comments@npm:4.3.0" + dependencies: + escape-string-regexp: ^4.0.0 + ignore: ^5.2.4 + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 + checksum: f79cd9b184435e5718b0323e28e29a2f9f7cf304d3380337c97bc8cf5ce50505cc13f6906985224da09439e1758f1c2557760fd4966bc3fd1c94e402400e7a7a + languageName: node + linkType: hard + "@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" @@ -5100,18 +5112,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-eslint-comments@npm:^3.1.2": - version: 3.2.0 - resolution: "eslint-plugin-eslint-comments@npm:3.2.0" - dependencies: - escape-string-regexp: ^1.0.5 - ignore: ^5.0.5 - peerDependencies: - eslint: ">=4.19.1" - checksum: c9fe273dd56699abdf7e416cfad0344eb50aa01564a5a9133e72d982defb89310bc2e9b0b148ce19c5190d7ff641223b0ba9e667a194bc48467c3dd0d471e657 - languageName: node - linkType: hard - "eslint-plugin-eslint-plugin@npm:^6.0.0": version: 6.2.0 resolution: "eslint-plugin-eslint-plugin@npm:6.2.0" @@ -5161,6 +5161,7 @@ __metadata: "@babel/preset-typescript": ^7.3.3 "@commitlint/cli": ^17.0.3 "@commitlint/config-conventional": ^17.0.3 + "@eslint-community/eslint-plugin-eslint-comments": ^4.3.0 "@schemastore/package": ^0.0.10 "@semantic-release/changelog": ^6.0.0 "@semantic-release/git": ^10.0.0 @@ -5177,7 +5178,6 @@ __metadata: eslint: ^7.0.0 || ^8.0.0 eslint-config-prettier: ^9.0.0 eslint-doc-generator: ^1.0.0 - eslint-plugin-eslint-comments: ^3.1.2 eslint-plugin-eslint-plugin: ^6.0.0 eslint-plugin-import: ^2.25.1 eslint-plugin-n: ^17.0.0 @@ -6325,7 +6325,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:^5.0.5, ignore@npm:^5.2.0, ignore@npm:^5.2.4": +"ignore@npm:^5.2.0, ignore@npm:^5.2.4": version: 5.3.1 resolution: "ignore@npm:5.3.1" checksum: 71d7bb4c1dbe020f915fd881108cbe85a0db3d636a0ea3ba911393c53946711d13a9b1143c7e70db06d571a5822c0a324a6bcde5c9904e7ca5047f01f1bf8cd3