11{
2- "parser" : " @typescript-eslint/parser" ,
3- "env" : {
4- "browser" : true ,
5- "node" : true
6- },
7- "plugins" : [
8- " prettier" ,
9- " @typescript-eslint" ,
10- " jest" ,
11- " import"
12- ],
13- "extends" : [
14- " prettier" ,
15- " plugin:prettier/recommended" ,
16- " plugin:@typescript-eslint/recommended" ,
17- " plugin:import/typescript"
18- ],
19- "parserOptions" : {
20- "sourceType" : " module" ,
21- "ecmaVersion" : 2018
22- },
23- "rules" : {
24- "import/namespace" : " off" ,
25- "import/order" : [
26- " error"
27- ],
28- "no-unused-vars" : " off" ,
29- "@typescript-eslint/no-unused-vars" : " error" ,
30- "@typescript-eslint/member-delimiter-style" : " off" ,
31- "@typescript-eslint/explicit-function-return-type" : " off" ,
32- "@typescript-eslint/no-var-requires" : " off" ,
33- "@typescript-eslint/no-extra-semi" : " off" ,
34- "@typescript-eslint/no-explicit-any" : " off"
35- },
36- "overrides" : [
37- {
38- // enable the rule specifically for TypeScript files
39- "files" : [
40- " *.ts" ,
41- " *.tsx"
42- ],
43- "rules" : {
44- "@typescript-eslint/explicit-function-return-type" : [
45- " error"
46- ]
47- }
48- }
49- ]
50- }
2+ "parser" : " @typescript-eslint/parser" ,
3+ "env" : {
4+ "browser" : true ,
5+ "node" : true
6+ },
7+ "plugins" : [" prettier" , " @typescript-eslint" , " jest" , " import" ],
8+ "extends" : [
9+ " prettier" ,
10+ " plugin:prettier/recommended" ,
11+ " plugin:@typescript-eslint/recommended" ,
12+ " plugin:import/typescript"
13+ ],
14+ "parserOptions" : {
15+ "sourceType" : " module" ,
16+ "ecmaVersion" : 2018
17+ },
18+ "rules" : {
19+ "import/namespace" : " off" ,
20+ "import/order" : [" error" ],
21+ "no-unused-vars" : " off" ,
22+ "@typescript-eslint/no-unused-vars" : " error" ,
23+ "@typescript-eslint/member-delimiter-style" : " off" ,
24+ "@typescript-eslint/explicit-function-return-type" : " off" ,
25+ "@typescript-eslint/no-var-requires" : " off" ,
26+ "@typescript-eslint/no-extra-semi" : " off" ,
27+ "@typescript-eslint/no-explicit-any" : " off"
28+ },
29+ "overrides" : [
30+ {
31+ // enable the rule specifically for TypeScript files
32+ "files" : [" *.ts" , " *.tsx" ],
33+ "rules" : {
34+ "@typescript-eslint/explicit-function-return-type" : [" error" ]
35+ }
36+ }
37+ ]
38+ }
0 commit comments