@@ -3,6 +3,7 @@ import { defineConfig } from 'eslint/config';
33import eslint from '@eslint/js' ;
44import tseslint from 'typescript-eslint' ;
55import stylistic from '@stylistic/eslint-plugin' ;
6+ import reactHooks from 'eslint-plugin-react-hooks' ;
67
78export default defineConfig (
89 {
@@ -16,6 +17,7 @@ export default defineConfig(
1617 eslint . configs . recommended ,
1718 tseslint . configs . strictTypeChecked ,
1819 tseslint . configs . stylisticTypeChecked ,
20+ reactHooks . configs . flat . recommended ,
1921 {
2022 plugins : {
2123 '@stylistic' : stylistic
@@ -29,10 +31,7 @@ export default defineConfig(
2931 } ,
3032 rules : {
3133 '@typescript-eslint/no-confusing-void-expression' : [ 'error' , { ignoreArrowShorthand : true } ] ,
32- '@typescript-eslint/no-extraneous-class' : 'off' ,
33- '@typescript-eslint/no-unused-vars' : [ 'error' , { caughtErrors : 'none' } ] ,
34- '@typescript-eslint/restrict-template-expressions' : [ 'error' , { allowNever : true } ] ,
35- '@typescript-eslint/unified-signatures' : [ 'error' , { ignoreDifferentlyNamedParameters : true } ] ,
34+ '@typescript-eslint/no-empty-function' : 'off' ,
3635
3736 'accessor-pairs' : 'error' ,
3837 'array-callback-return' : 'error' ,
0 commit comments