Skip to content

Commit

Permalink
chore: remove eslint-plugin-eslint-config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
G-Rath committed Nov 23, 2021
1 parent 7cd705f commit d581d14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 83 deletions.
13 changes: 2 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { files } = require('./package.json');

/** @type {import('eslint').Linter.Config} */
const config = {
env: { node: true },
Expand All @@ -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'] },
Expand All @@ -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: {
Expand Down
71 changes: 0 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d581d14

Please sign in to comment.