13
13
"rules" : {
14
14
"no-console" : 0 ,
15
15
16
- "semi" : [" error" , " always" ],
17
-
18
16
"array-callback-return" : 2 ,
19
17
"curly" : [" error" , " all" ],
20
18
"eqeqeq" : [" error" , " allow-null" ],
21
- "dot-notation" : 2
19
+ "dot-notation" : 2 ,
20
+
21
+ // style
22
+
23
+ "array-bracket-spacing" : [" error" , " never" ],
24
+ // block-spacing?
25
+ "brace-style" : [" error" , " stroustrup" ],
26
+ "camelcase" : 2 ,
27
+ "comma-spacing" : 2 ,
28
+ "comma-style" : 2 ,
29
+ "computed-property-spacing" : 2 ,
30
+ // consistent-this?
31
+ "eol-last" : 2 ,
32
+ "indent" : [" error" , 4 ],
33
+ "key-spacing" : [" error" , {
34
+ "mode" : " minimum"
35
+ }],
36
+ "keyword-spacing" : 2 ,
37
+ // linebreak-style?
38
+ "max-len" : [" warn" , 80 ],
39
+ // other max-*?
40
+ "no-array-constructor" : 2 ,
41
+ "no-inline-comments" : 2 ,
42
+ "no-lonely-if" : 2 ,
43
+ "no-multiple-empty-lines" : 1 ,
44
+ "no-nested-ternary" : 2 ,
45
+ "no-new-object" : 2 ,
46
+ "no-plusplus" : 2 ,
47
+ // no-restricted-syntax maybe? discourage `with`?
48
+ "no-trailing-spaces" : 2 , // !!!!!!!!!!!!!!!!!!!
49
+ "no-spaced-func" : 2 ,
50
+ "no-unneeded-ternary" : 2 ,
51
+ "no-whitespace-before-property" : 2 ,
52
+ "object-curly-spacing" : [" error" , " always" ],
53
+ // operator-linebreak? operator-assignment?
54
+ "quote-props" : [" error" , " as-needed" ],
55
+ "quotes" : [" error" , " single" ],
56
+ "semi" : [" error" , " always" ],
57
+ "space-in-parens" : [" error" , " never" ],
58
+ "spaced-comment" : [" error" , " always" , {
59
+ "markers" : [" global" ]
60
+ }]
22
61
}
23
62
}
0 commit comments