2
2
"extends" : [
3
3
" next" ,
4
4
" next/core-web-vitals" ,
5
- " next/typescript"
6
- ]
7
- }
5
+ " next/typescript" ,
6
+ " prettier"
7
+ ],
8
+ "plugins" : [" @typescript-eslint" ],
9
+ "rules" : {
10
+ // Todo: investigate, for each of these rules, whether we want them.
11
+ "@typescript-eslint/array-type" : " off" ,
12
+ "@typescript-eslint/ban-ts-comment" : " off" ,
13
+ "@typescript-eslint/ban-tslint-comment" : " off" ,
14
+ "@typescript-eslint/ban-types" : " off" ,
15
+ "@typescript-eslint/class-literal-property-style" : " off" ,
16
+ "@typescript-eslint/consistent-generic-constructors" : " off" ,
17
+ "@typescript-eslint/consistent-indexed-object-style" : " off" ,
18
+ "@typescript-eslint/consistent-type-definitions" : " off" ,
19
+ "@typescript-eslint/no-empty-function" : " off" ,
20
+ "@typescript-eslint/no-namespace" : " off" ,
21
+ "@typescript-eslint/no-shadow" : " off" ,
22
+ "@typescript-eslint/no-empty-interface" : " off" ,
23
+ "@typescript-eslint/no-explicit-any" : " off" ,
24
+ "@typescript-eslint/no-inferrable-types" : " off" ,
25
+ "@typescript-eslint/no-var-requires" : " off" ,
26
+ "@typescript-eslint/prefer-for-of" : " off" ,
27
+ "@typescript-eslint/prefer-function-type" : " off" ,
28
+ "@typescript-eslint/no-this-alias" : " off" ,
29
+ "@typescript-eslint/triple-slash-reference" : " off" ,
30
+ "no-var" : " off" ,
31
+ "prefer-const" : " off" ,
32
+ "prefer-rest-params" : " off" ,
33
+ "prefer-spread" : " off" ,
34
+
35
+ // These off- or differently-configured rules work well for us.
36
+ "no-unused-expressions" : " off" ,
37
+ "@typescript-eslint/no-unused-expressions" : [
38
+ " error" ,
39
+ {
40
+ "allowShortCircuit" : true ,
41
+ "allowTernary" : true ,
42
+ "allowTaggedTemplates" : true
43
+ }
44
+ ],
45
+ "no-unused-vars" : " off" ,
46
+ "@typescript-eslint/no-unused-vars" : [
47
+ " error" ,
48
+ {
49
+ "args" : " none" ,
50
+ "ignoreRestSiblings" : true ,
51
+ "argsIgnorePattern" : " ^_" ,
52
+ "caughtErrorsIgnorePattern" : " ^_" ,
53
+ "destructuredArrayIgnorePattern" : " ^_" ,
54
+ "varsIgnorePattern" : " ^_"
55
+ }
56
+ ],
57
+ "no-use-before-define" : " off" ,
58
+ "no-useless-constructor" : " off" ,
59
+ "@typescript-eslint/no-use-before-define" : " off" ,
60
+ "@typescript-eslint/no-useless-constructor" : " error" ,
61
+ "@typescript-eslint/prefer-literal-enum-member" : " error"
62
+ }
63
+ }
0 commit comments