Skip to content

Commit

Permalink
refactor(dependencies): migrate to Kiwi (#245)
Browse files Browse the repository at this point in the history
* refactor(dependencies): use features from Kiwi

* chore(dependencies): bump dependencies

* refactor(dependencies): migrate to ESLint 9

* chore(dependencies): bump dependencies
  • Loading branch information
angrybacon authored May 9, 2024
1 parent 0c6c904 commit 3efe2f1
Show file tree
Hide file tree
Showing 63 changed files with 5,726 additions and 5,770 deletions.
97 changes: 0 additions & 97 deletions .eslintrc.json

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.mjs
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,
})),
];
1 change: 0 additions & 1 deletion jest.setup.ts
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';
Loading

0 comments on commit 3efe2f1

Please sign in to comment.