Skip to content

Commit

Permalink
Upgrade to ESLint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Sep 30, 2024
1 parent d85141e commit c0892cb
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 305 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import reactHooks from 'eslint-plugin-react-hooks'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
{
ignores: ['dist/', 'example/build/', 'coverage/', '.lintstagedrc.js'],
},
{
files: ['src/**/*.ts', 'src/**/*.tsx'],
},
{
plugins: {
'react-hooks': reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules,
},
},
);
Loading

0 comments on commit c0892cb

Please sign in to comment.