-
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 Kiwi (#245)
* refactor(dependencies): use features from Kiwi * chore(dependencies): bump dependencies * refactor(dependencies): migrate to ESLint 9 * chore(dependencies): bump dependencies
- Loading branch information
1 parent
0c6c904
commit 3efe2f1
Showing
63 changed files
with
5,726 additions
and
5,770 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'; |
Oops, something went wrong.