@@ -5,9 +5,19 @@ import react from 'eslint-plugin-react';
55
66export default tseslint . config (
77 eslint . configs . recommended ,
8- tseslint . configs . recommended ,
8+ tseslint . configs . recommendedTypeChecked ,
99 react . configs . flat . recommended ,
1010 react . configs . flat [ 'jsx-runtime' ] ,
11+ {
12+ languageOptions : {
13+ parserOptions : {
14+ projectService : {
15+ allowDefaultProject : [ '*.js' , '*.mjs' , 'vitest.config.mts' ] ,
16+ } ,
17+ tsconfigRootDir : import . meta. dirname ,
18+ } ,
19+ } ,
20+ } ,
1121 {
1222 ignores : [ 'dist/' ] ,
1323 } ,
@@ -35,6 +45,9 @@ export default tseslint.config(
3545 'no-control-regex' : 'off' ,
3646 'quotes' : [ 'warn' , 'single' ] ,
3747 'semi' : [ 'warn' , 'always' ] ,
48+ '@typescript-eslint/no-misused-promises' : [ 'warn' , {
49+ checksVoidReturn : false ,
50+ } ] ,
3851 '@typescript-eslint/no-empty-object-type' : [ 'warn' , {
3952 allowInterfaces : 'with-single-extends' ,
4053 allowWithName : 'Props$' ,
@@ -46,6 +59,10 @@ export default tseslint.config(
4659 } ] ,
4760 '@typescript-eslint/no-unused-vars' : 'off' ,
4861 '@typescript-eslint/no-var-requires' : 'off' ,
62+ '@typescript-eslint/prefer-promise-reject-errors' : 'off' ,
63+ '@typescript-eslint/unbound-method' : [ 'warn' , {
64+ ignoreStatic : true ,
65+ } ] ,
4966 } ,
5067 } ,
5168 {
@@ -69,6 +86,8 @@ export default tseslint.config(
6986 SwitchCase : 1 ,
7087 } ] ,
7188 '@typescript-eslint/no-require-imports' : 'off' ,
89+ '@typescript-eslint/no-unsafe-assignment' : 'off' ,
90+ '@typescript-eslint/no-unsafe-call' : 'off' ,
7291 } ,
7392 }
7493) ;
0 commit comments