@@ -3,10 +3,13 @@ import globals from 'globals';
3
3
import pluginJest from 'eslint-plugin-jest' ;
4
4
import importPlugin from 'eslint-plugin-import' ;
5
5
import pluginReact from 'eslint-plugin-react' ;
6
- import tseslint from 'typescript-eslint' ;
6
+ import {
7
+ config as tseslintConfig ,
8
+ configs as tseslintConfigs ,
9
+ } from 'typescript-eslint' ;
7
10
8
11
/** @type {import('eslint').Linter.Config[] } */
9
- export default tseslint . config (
12
+ export default tseslintConfig (
10
13
{ files : [ '**/*.{js,mjs,cjs,ts,jsx,tsx}' ] } ,
11
14
{
12
15
ignores : [
@@ -30,8 +33,15 @@ export default tseslint.config(
30
33
pluginJs . configs . recommended ,
31
34
importPlugin . flatConfigs . recommended ,
32
35
importPlugin . flatConfigs . typescript ,
33
- ...tseslint . configs . recommended ,
36
+ ...tseslintConfigs . recommended ,
34
37
38
+ {
39
+ settings : {
40
+ 'import/resolver' : {
41
+ typescript : { } ,
42
+ } ,
43
+ } ,
44
+ } ,
35
45
{
36
46
rules : {
37
47
eqeqeq : 'error' ,
@@ -155,12 +165,5 @@ export default tseslint.config(
155
165
'prefer-arrow-callback' : 'off' ,
156
166
'@typescript-eslint/no-require-imports' : 'off' ,
157
167
} ,
158
- } ,
159
- {
160
- settings : {
161
- 'import/resolver' : {
162
- typescript : { } ,
163
- } ,
164
- } ,
165
168
}
166
169
) ;
0 commit comments