-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dependencies): migrate to ESLint 9
- Loading branch information
1 parent
b6d5b90
commit d2ad653
Showing
47 changed files
with
304 additions
and
810 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Js from '@eslint/js'; | ||
import PluginImport from 'eslint-plugin-import'; | ||
import Ts from 'typescript-eslint'; | ||
|
||
// NOTE Some plugins have yet to properly migrate to being compatible with the | ||
// flat configuration machinery. We probably want them back once they're | ||
// compatible again. | ||
// | ||
// - eslint-plugin-jsx-a11y | ||
// - eslint-plugin-react | ||
// - eslint-plugin-react-hooks | ||
// - next/core-web-vitals | ||
|
||
export default [ | ||
...[ | ||
Js.configs.recommended, | ||
...Ts.configs.strict, | ||
...Ts.configs.stylistic, | ||
{ | ||
plugins: { import: PluginImport }, | ||
rules: { | ||
'@typescript-eslint/consistent-type-definitions': ['error', 'type'], | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ argsIgnorePattern: '^_', ignoreRestSiblings: true }, | ||
], | ||
'import/consistent-type-specifier-style': ['error', 'prefer-inline'], | ||
}, | ||
}, | ||
].map((it) => ({ | ||
files: ['{scryfall,src}/**/*.{ts,tsx}'], | ||
languageOptions: { parser: Ts.parser }, | ||
...it, | ||
})), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import '@testing-library/jest-dom'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.