9
9
" @typescript-eslint"
10
10
],
11
11
"rules" : {
12
- "@typescript-eslint/naming-convention" : " warn" ,
12
+ // Whitespace
13
+ "indent" : [" error" , 2 ],
14
+ "max-len" : [" warn" , { "code" : 120 }],
15
+ "array-bracket-newline" : [" warn" , " consistent" ],
16
+ "array-element-newline" : [" warn" , " consistent" ],
17
+ "function-paren-newline" : [" warn" , " consistent" ],
18
+ "object-curly-spacing" : [" warn" , " always" , { "objectsInObjects" : false }],
19
+ "function-call-argument-newline" : " off" ,
20
+ "lines-between-class-members" : " off" ,
21
+ "padded-blocks" : " off" ,
22
+ "space-before-function-paren" : [" warn" , {"anonymous" : " always" , "named" : " never" , "asyncArrow" : " always" }],
23
+
24
+ // Formatting
25
+ "curly" : " error" ,
26
+ "arrow-parens" : [" warn" , " as-needed" ],
27
+ "dot-location" : [" warn" , " property" ],
28
+ "quote-props" : " off" ,
29
+ "quotes" : [" warn" , " single" ],
30
+ "semi" : " warn" ,
13
31
"@typescript-eslint/semi" : " warn" ,
14
- "curly" : " warn" ,
32
+
33
+ // Style and pitfalls
34
+ "class-methods-use-this" : " off" ,
15
35
"eqeqeq" : " warn" ,
36
+ "func-style" : [" warn" , " declaration" ],
37
+ "multiline-ternary" : " off" ,
38
+ "no-console" : " off" ,
39
+ "no-else-return" : " off" ,
40
+ "no-invalid-this" : " off" ,
41
+ "no-magic-numbers" : [" warn" , { "ignore" : [0 , 1 ] }],
42
+ "no-negated-condition" : " off" ,
43
+ "no-promise-executor-return" : " off" ,
44
+ "no-ternary" : " off" ,
16
45
"no-throw-literal" : " warn" ,
17
- "semi" : " off"
46
+ "no-undef-init" : " off" ,
47
+ "no-undefined" : " off" ,
48
+ "no-underscore-dangle" : " off" ,
49
+ "no-unused-vars" : [" warn" , { "args" : " none" }],
50
+ "no-use-before-define" : " off" ,
51
+ "one-var" : " off" ,
52
+ "prefer-destructuring" : " off" ,
53
+ "prefer-template" : " off" ,
54
+ "sort-keys" : " off" ,
55
+ "@typescript-eslint/naming-convention" : " warn" ,
56
+
57
+ // Stay out of my comments
58
+ "capitalized-comments" : " off" ,
59
+ "line-comment-position" : " off" ,
60
+ "lines-around-comment" : " off" ,
61
+ "multiline-comment-style" : " off" ,
62
+ "no-inline-comments" : " off" ,
63
+ "no-warning-comments" : " off" ,
64
+
65
+ // No limits
66
+ "max-classes-per-file" : " off" ,
67
+ "max-lines-per-function" : " off" ,
68
+ "max-lines" : " off" ,
69
+ "max-params" : " off" ,
70
+ "max-statements" : " off"
18
71
},
19
72
"ignorePatterns" : [
20
73
" out" ,
21
74
" dist" ,
22
75
" **/*.d.ts"
76
+ // "webpack.config.js"
23
77
]
24
- }
78
+ }
0 commit comments