@@ -102,6 +102,12 @@ module.exports = [
102102 "simple-import-sort/exports" : "error" ,
103103 "sort-imports" : "off" ,
104104 "import-x/order" : "off" ,
105+ // Forbid: `import x from "./foo"`; require `"./foo.ts"`
106+ "import-x/extensions" : [
107+ "error" ,
108+ "ignorePackages" ,
109+ { checkTypeImports : true } ,
110+ ] ,
105111
106112 "import-x/no-deprecated" : "warn" ,
107113 "import-x/no-duplicates" : "error" ,
@@ -123,12 +129,6 @@ module.exports = [
123129 project : true ,
124130 } ,
125131 rules : {
126- // Forbid: `import x from "./foo"`; require `"./foo.ts"`
127- "import-x/extensions" : [
128- "error" ,
129- "ignorePackages" ,
130- { checkTypeImports : true } ,
131- ] ,
132132 "@typescript-eslint/consistent-type-exports" : "error" ,
133133 "@typescript-eslint/consistent-type-imports" : "error" ,
134134 } ,
@@ -137,12 +137,6 @@ module.exports = [
137137 files : [ "__tests__/**/*" , "test.js" ] ,
138138 plugins : [ "import-x" ] ,
139139 rules : {
140- // Forbid: `import x from "./foo"`; require `"./foo.ts"`
141- "import-x/extensions" : [
142- "error" ,
143- "ignorePackages" ,
144- { checkTypeImports : true } ,
145- ] ,
146140 "@typescript-eslint/no-explicit-any" : 0 ,
147141 "@typescript-eslint/explicit-function-return-type" : 0 ,
148142 "@typescript-eslint/no-var-requires" : 0 ,
@@ -155,6 +149,7 @@ module.exports = [
155149 {
156150 files : [ "perfTest/**/*" , "examples/**/*" ] ,
157151 rules : {
152+ "import-x/extensions" : "off" ,
158153 "@typescript-eslint/no-var-requires" : 0 ,
159154 } ,
160155 } ,
0 commit comments