From d581d1410dcd7fbfca881dcbddd55656e6b1ff79 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 29 Oct 2021 11:28:01 +1300 Subject: [PATCH] chore: remove `eslint-plugin-eslint-config` it currently cannot work with ESLint v8 due to switching to an async api for programmatic linting, but rules are still required to be sync right now --- .eslintrc.js | 13 ++------- package-lock.json | 71 ----------------------------------------------- package.json | 1 - 3 files changed, 2 insertions(+), 83 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 2747cb60..0dfa6aa6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,3 @@ -const { files } = require('./package.json'); - /** @type {import('eslint').Linter.Config} */ const config = { env: { node: true }, @@ -9,8 +7,8 @@ const config = { sourceType: 'module', ecmaVersion: 2019 }, - plugins: ['@typescript-eslint/eslint-plugin', 'eslint-config'], - extends: ['./index.js', './@typescript-eslint.js', 'plugin:eslint-config/rc'], + plugins: ['@typescript-eslint/eslint-plugin'], + extends: ['./index.js', './@typescript-eslint.js'], ignorePatterns: ['!.eslintplugin/'], overrides: [ { files: ['*.spec.*'], extends: ['./jest.js'] }, @@ -20,13 +18,6 @@ const config = { '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-var-requires': 'off' } - }, - { - files: files.map(file => `./${file}`), - extends: ['plugin:eslint-config/recommended-rules'], - rules: { - 'eslint-config/sort-rules': 'error' - } } ], rules: { diff --git a/package-lock.json b/package-lock.json index 37cbd53f..83523301 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1832,20 +1832,6 @@ } } }, - "@typescript-eslint/experimental-utils": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz", - "integrity": "sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.7", - "@typescript-eslint/scope-manager": "4.33.0", - "@typescript-eslint/types": "4.33.0", - "@typescript-eslint/typescript-estree": "4.33.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0" - } - }, "@typescript-eslint/parser": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.3.1.tgz", @@ -1907,47 +1893,6 @@ } } }, - "@typescript-eslint/scope-manager": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz", - "integrity": "sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.33.0", - "@typescript-eslint/visitor-keys": "4.33.0" - } - }, - "@typescript-eslint/types": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.33.0.tgz", - "integrity": "sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz", - "integrity": "sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.33.0", - "@typescript-eslint/visitor-keys": "4.33.0", - "debug": "^4.3.1", - "globby": "^11.0.3", - "is-glob": "^4.0.1", - "semver": "^7.3.5", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz", - "integrity": "sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.33.0", - "eslint-visitor-keys": "^2.0.0" - } - }, "JSONStream": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", @@ -3705,16 +3650,6 @@ "ignore": "^5.0.5" } }, - "eslint-plugin-eslint-config": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-config/-/eslint-plugin-eslint-config-2.0.0.tgz", - "integrity": "sha512-/l7gweGTuxOAKzIHw5yTywsDE1VMfN3hGwkaYES0kxKmYcGuYslyXdUxZwMaDgr9XHqCrhq4j41BF+GBY9zP0A==", - "dev": true, - "requires": { - "@typescript-eslint/experimental-utils": "^4.11.1", - "require-relative": "^0.8.7" - } - }, "eslint-plugin-flowtype": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-6.1.1.tgz", @@ -9900,12 +9835,6 @@ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, - "require-relative": { - "version": "0.8.7", - "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", - "integrity": "sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=", - "dev": true - }, "resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", diff --git a/package.json b/package.json index 1f0d9862..ef14acad 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "@typescript-eslint/parser": "^5.0.0", "eslint": "^8.0.1", "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-eslint-config": "^2.0.0", "eslint-plugin-flowtype": "^6.0.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^25.0.0",