@@ -2,33 +2,44 @@ module.exports = {
22 root : true ,
33 parser : '@typescript-eslint/parser' ,
44 plugins : [ '@typescript-eslint/eslint-plugin' ] ,
5- extends : [
6- 'eslint:recommended' ,
7- 'plugin:@typescript-eslint/recommended' ,
8- 'plugin:@typescript-eslint/recommended-requiring-type-checking' ,
9- ] ,
10-
11- parserOptions : {
12- tsconfigRootDir : __dirname ,
13- project : [ './tsconfig.json' ] ,
14- } ,
5+ extends : [ 'eslint:recommended' ] ,
156
167 rules : {
17- '@typescript-eslint/no-explicit-any' : 'off' ,
18- '@typescript-eslint/strict-boolean-expressions' : 'off' ,
19- '@typescript-eslint/no-unsafe-call' : 'off' ,
20- '@typescript-eslint/no-unsafe-member-access' : 'off' ,
21- '@typescript-eslint/no-unsafe-assignment' : 'off' ,
22- '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
23- '@typescript-eslint/no-unsafe-return' : 'off' ,
24- '@typescript-eslint/no-empty-interface' : 'off' ,
25- '@typescript-eslint/no-non-null-assertion' : 'off' ,
268 'no-var' : 'error' ,
279 'object-curly-spacing' : [ 'error' , 'always' ] ,
2810 'object-shorthand' : 'error' ,
2911 'prefer-const' : 'error' ,
3012 'max-len' : 'off' ,
3113 } ,
14+
15+ overrides : [
16+ {
17+ files : [ '**/*.ts' ] ,
18+ extends : [
19+ 'eslint:recommended' ,
20+ 'plugin:@typescript-eslint/recommended' ,
21+ 'plugin:@typescript-eslint/recommended-requiring-type-checking' ,
22+ ] ,
23+ parser : '@typescript-eslint/parser' ,
24+ plugins : [ '@typescript-eslint' ] ,
25+ parserOptions : {
26+ tsconfigRootDir : __dirname ,
27+ project : [ './tsconfig.json' ] ,
28+ } ,
29+ rules : {
30+ '@typescript-eslint/no-explicit-any' : 'off' ,
31+ '@typescript-eslint/strict-boolean-expressions' : 'off' ,
32+ '@typescript-eslint/no-unsafe-call' : 'off' ,
33+ '@typescript-eslint/no-unsafe-member-access' : 'off' ,
34+ '@typescript-eslint/no-unsafe-assignment' : 'off' ,
35+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
36+ '@typescript-eslint/no-unsafe-return' : 'off' ,
37+ '@typescript-eslint/no-empty-interface' : 'off' ,
38+ '@typescript-eslint/no-non-null-assertion' : 'off' ,
39+ } ,
40+ } ,
41+ ] ,
42+
3243 env : {
3344 es6 : true ,
3445 mocha : true ,
0 commit comments