@@ -21,19 +21,19 @@ export default /** @type {import('typescript-eslint').ConfigArray} */ (
21
21
tseslint . config (
22
22
{
23
23
settings : {
24
- 'import/parsers' : {
24
+ 'import-x /parsers' : {
25
25
'@typescript-eslint/parser' : [ '.ts' , '.tsx' , '.d.ts' ] ,
26
26
} ,
27
- 'import/resolver' : {
27
+ 'import-x /resolver' : {
28
28
node : {
29
29
extensions : [ '.mjs' , '.js' , '.jsx' , '.json' , '.ts' , '.tsx' , '.d.ts' ] ,
30
30
} ,
31
31
} ,
32
- // Append 'ts' extensions to Airbnb 'import/extensions' setting
32
+ // Append 'ts' extensions to Airbnb 'import-x /extensions' setting
33
33
// Original: ['.js', '.mjs', '.jsx']
34
- 'import/extensions' : [ '.js' , '.mjs' , '.jsx' , '.ts' , '.tsx' , '.d.ts' ] ,
34
+ 'import-x /extensions' : [ '.js' , '.mjs' , '.jsx' , '.ts' , '.tsx' , '.d.ts' ] ,
35
35
// Resolve type definition packages
36
- 'import/external-module-folders' : [ 'node_modules' , 'node_modules/@types' ] ,
36
+ 'import-x /external-module-folders' : [ 'node_modules' , 'node_modules/@types' ] ,
37
37
} ,
38
38
rules : {
39
39
camelcase : 'off' ,
@@ -77,9 +77,9 @@ export default /** @type {import('typescript-eslint').ConfigArray} */ (
77
77
'require-await' : 'off' ,
78
78
'@typescript-eslint/require-await' : baseBestPractices . rules ?. [ 'require-await' ] ,
79
79
80
- // Append 'ts' and 'tsx' to Airbnb 'import/extensions' rule
80
+ // Append 'ts' and 'tsx' to Airbnb 'import-x /extensions' rule
81
81
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
82
- 'import/extensions' : [
82
+ 'import-x /extensions' : [
83
83
baseImportsRules [ 'import/extensions' ] [ 0 ] ,
84
84
baseImportsRules [ 'import/extensions' ] [ 1 ] ,
85
85
typeof baseImportsRules [ 'import/extensions' ] [ 2 ] === 'object'
@@ -117,9 +117,9 @@ export default /** @type {import('typescript-eslint').ConfigArray} */ (
117
117
'valid-typeof' : 'off' ,
118
118
// The following rules are enabled in Airbnb config, but are recommended to be disabled within TypeScript projects
119
119
// See: https://github.com/typescript-eslint/typescript-eslint/blob/13583e65f5973da2a7ae8384493c5e00014db51b/docs/linting/TROUBLESHOOTING.md#eslint-plugin-import
120
- 'import/named' : 'off' ,
121
- 'import/no-named-as-default-member' : 'off' ,
122
- 'import/no-unresolved' : 'off' ,
120
+ 'import-x /named' : 'off' ,
121
+ 'import-x /no-named-as-default-member' : 'off' ,
122
+ 'import-x /no-unresolved' : 'off' ,
123
123
} ,
124
124
} ,
125
125
)
0 commit comments