@@ -14,20 +14,17 @@ const tseslintConfigs = tseslint.config(
1414 languageOptions : {
1515 parserOptions : { project : './tsconfig.js.json' } ,
1616 } ,
17- extends : [
18- ...tseslint . configs . recommended ,
19- ] ,
17+ extends : [ ...tseslint . configs . recommended ] ,
2018 rules : {
2119 '@typescript-eslint/no-var-requires' : 'off' , // (tseslint does not autodetect commonjs context )
2220 } ,
23- } , {
21+ } ,
22+ {
2423 files : tsconfigTsFiles ,
2524 languageOptions : {
2625 parserOptions : { project : './tsconfig.ts.json' } ,
2726 } ,
28- extends : [
29- ...tseslint . configs . recommended ,
30- ] ,
27+ extends : [ ...tseslint . configs . recommended ] ,
3128 } ,
3229) ;
3330
@@ -59,17 +56,20 @@ module.exports = [
5956 files : [ '**/*.test.{js,mjs,cjs}' ] ,
6057 rules : {
6158 'no-unused-vars' : 'off' , // lots in tests, minimise churn for now
62- }
59+ } ,
6360 } ,
6461 {
6562 files : [ ...tsconfigTsFiles , ...tsconfigJsFiles ] ,
6663 rules : {
67- '@typescript-eslint/ban-ts-comment' : [ 'error' , {
68- 'ts-expect-error' : 'allow-with-description' ,
69- 'ts-ignore' : 'allow-with-description' ,
70- 'ts-nocheck' : true ,
71- 'ts-check' : true ,
72- } ] ,
64+ '@typescript-eslint/ban-ts-comment' : [
65+ 'error' ,
66+ {
67+ 'ts-expect-error' : 'allow-with-description' ,
68+ 'ts-ignore' : 'allow-with-description' ,
69+ 'ts-nocheck' : true ,
70+ 'ts-check' : true ,
71+ } ,
72+ ] ,
7373 } ,
7474 } ,
7575] ;
0 commit comments