Skip to content

Commit c0892cb

Browse files
committed
Upgrade to ESLint v9
1 parent d85141e commit c0892cb

File tree

5 files changed

+275
-305
lines changed

5 files changed

+275
-305
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
5+
export default tseslint.config(
6+
eslint.configs.recommended,
7+
...tseslint.configs.strict,
8+
{
9+
ignores: ['dist/', 'example/build/', 'coverage/', '.lintstagedrc.js'],
10+
},
11+
{
12+
files: ['src/**/*.ts', 'src/**/*.tsx'],
13+
},
14+
{
15+
plugins: {
16+
'react-hooks': reactHooks,
17+
},
18+
rules: {
19+
...reactHooks.configs.recommended.rules,
20+
},
21+
},
22+
);

0 commit comments

Comments
 (0)