@@ -88,8 +88,8 @@ export default [
8888 js : 'ignorePackages' ,
8989 json : 'always' ,
9090 mjs : 'ignorePackages' ,
91- mts : 'never ' ,
92- ts : 'never ' ,
91+ mts : 'ignorePackages ' ,
92+ ts : 'ignorePackages ' ,
9393 } ,
9494 ] ,
9595 'import-x/no-named-as-default-member' : 'off' ,
@@ -166,7 +166,7 @@ export default [
166166 } ,
167167 } ,
168168 {
169- files : [ 'test/ **/*.test .mts' ] ,
169+ files : [ '**/*.ts' , '**/* .mts'] ,
170170 languageOptions : {
171171 parser : typescriptParser ,
172172 sourceType : 'module' ,
@@ -180,22 +180,20 @@ export default [
180180 'n/no-missing-import' : 'off' ,
181181 'n/no-missing-require' : 'off' ,
182182 'import-x/no-unresolved' : 'off' ,
183- 'import-x/extensions' : 'off' ,
184- 'no-unused-vars' : [
183+ 'import-x/extensions' : [
185184 'error' ,
185+ 'never' ,
186186 {
187- argsIgnorePattern : '^_|^this$|^context$' ,
188- ignoreRestSiblings : true ,
189- varsIgnorePattern : '^_' ,
187+ js : 'always' ,
188+ json : 'always' ,
189+ ts : 'ignorePackages' ,
190+ mts : 'ignorePackages' ,
190191 } ,
191192 ] ,
192- 'unicorn/consistent-function-scoping' : 'off' ,
193- 'no-proto' : 'off' ,
194- 'no-new' : 'off' ,
195193 } ,
196194 } ,
197195 {
198- files : [ '**/*.ts' , '**/* .mts'] ,
196+ files : [ 'test/**/*.test .mts' ] ,
199197 languageOptions : {
200198 parser : typescriptParser ,
201199 sourceType : 'module' ,
@@ -209,14 +207,18 @@ export default [
209207 'n/no-missing-import' : 'off' ,
210208 'n/no-missing-require' : 'off' ,
211209 'import-x/no-unresolved' : 'off' ,
212- 'import-x/extensions' : [
210+ 'import-x/extensions' : 'off' ,
211+ 'no-unused-vars' : [
213212 'error' ,
214- 'always' ,
215213 {
216- ts : 'never' ,
217- mts : 'never' ,
214+ argsIgnorePattern : '^_|^this$|^context$' ,
215+ ignoreRestSiblings : true ,
216+ varsIgnorePattern : '^_' ,
218217 } ,
219218 ] ,
219+ 'unicorn/consistent-function-scoping' : 'off' ,
220+ 'no-proto' : 'off' ,
221+ 'no-new' : 'off' ,
220222 } ,
221223 } ,
222224]
0 commit comments