@@ -28,21 +28,20 @@ const tsEslintStrict = tseslint.configs.strict.map( addFiles ); // Already inclu
2828module . exports = [
2929 ...tsEslintTypeChecked ,
3030 ...tsEslintStrict ,
31- {
32- ignores : [ '**/*.d.ts' , '**/*.d.cts' , '**/*.d.mts' ] ,
33- } ,
3431 {
3532 files,
33+ ignores : [ '**/*.d.ts' , '**/*.d.cts' , '**/*.d.mts' ] ,
34+ plugins : {
35+ '@typescript-eslint' : tseslint . plugin ,
36+ '@automattic/wpvip' : require ( '../plugin' ) ,
37+ jsdoc : JsDoc ,
38+ } ,
3639 languageOptions : {
3740 parser : TsEsLintParser ,
3841 parserOptions : {
3942 projectService : true ,
4043 } ,
4144 } ,
42- plugins : {
43- '@automattic/wpvip' : require ( '../plugin' ) ,
44- jsdoc : JsDoc ,
45- } ,
4645 rules : {
4746 // Ensures NestJS route prefixes are correctly formatted.
4847 '@automattic/wpvip/nestjs-route-prefix' : 'error' ,
@@ -63,6 +62,7 @@ module.exports = [
6362 '@typescript-eslint/no-explicit-any' : 'error' ,
6463
6564 // Provide escape hatches around destructuring and arguments.
65+ 'no-unused-vars' : 'off' ,
6666 '@typescript-eslint/no-unused-vars' : [
6767 'error' ,
6868 {
@@ -99,6 +99,11 @@ module.exports = [
9999 allowWithDecorator : true ,
100100 } ,
101101 ] ,
102+
103+ 'class-methods-use-this' : 'off' ,
104+
105+ 'default-param-last' : 'off' ,
106+ '@typescript-eslint/default-param-last' : 'error' ,
102107 } ,
103108 } ,
104109] ;
0 commit comments