11module . exports = {
22 parser : '@typescript-eslint/parser' ,
3- plugins : [ '@typescript-eslint' , 'import-x ' , 'progress' , 'sonarjs' ] ,
3+ plugins : [ '@typescript-eslint' , 'import' , 'progress' , 'sonarjs' ] ,
44 extends : [
55 //General eslint recommended rules
66 'eslint:recommended' ,
@@ -10,8 +10,8 @@ module.exports = {
1010 //General code quality rules
1111 'plugin:sonarjs/recommended' ,
1212 //General import rules
13- 'plugin:import-x /recommended' ,
14- 'plugin:import-x /typescript' ,
13+ 'plugin:import/recommended' ,
14+ 'plugin:import/typescript' ,
1515 ] ,
1616 rules : {
1717 /** ESLint plugin configuration */
@@ -28,9 +28,9 @@ module.exports = {
2828 //Enforce the use of top-level import type qualifer when an import only has specifiers with inline type qualifiers
2929 '@typescript-eslint/no-import-type-side-effects' : 'warn' ,
3030 //We want to encourage the import type specifiers to be consistent
31- 'import-x /consistent-type-specifier-style' : [ 'warn' , 'prefer-top-level' ] ,
31+ 'import/consistent-type-specifier-style' : [ 'warn' , 'prefer-top-level' ] ,
3232 //Set up a specificer import that we generally want to adhere to to make it easier recognizing where an import is coming from
33- 'import-x /order' : [
33+ 'import/order' : [
3434 'warn' ,
3535 {
3636 groups : [ 'builtin' , 'external' , 'internal' , 'parent' , 'sibling' , 'index' , 'object' , 'unknown' ] ,
@@ -77,9 +77,13 @@ module.exports = {
7777 } ,
7878 //Default settings to fit simple projects, but should be overridden by users who want/need more control
7979 settings : {
80- 'import-x/resolver' : {
81- typescript : true ,
82- node : true ,
80+ 'import/parsers' : {
81+ '@typescript-eslint/parser' : [ '.ts' , '.tsx' ] ,
82+ } ,
83+ 'import/resolver' : {
84+ typescript : {
85+ alwaysTryTypes : true ,
86+ } ,
8387 } ,
8488 } ,
8589} ;
0 commit comments