1
+ {
2
+ "env" : {
3
+ "es6" : true ,
4
+ "node" : true
5
+ },
6
+ "rules" : {
7
+ "strict" : " error" ,
8
+ "no-var" : " error" ,
9
+ "prefer-const" : " error" ,
10
+ "one-var" : [
11
+ " error" ,
12
+ " never"
13
+ ],
14
+ "camelcase" : " error" ,
15
+ "no-unused-vars" : " error" ,
16
+ "no-multi-assign" : " error" ,
17
+ "no-new-object" : " error" ,
18
+ "no-array-constructor" : " error" ,
19
+ "no-new-wrappers" : " error" ,
20
+ "no-extra-boolean-cast" : " error" ,
21
+ "eqeqeq" : " error" ,
22
+ "yoda" : " error" ,
23
+ // Ternary
24
+ "no-unneeded-ternary" : " error" ,
25
+ "no-nested-ternary" : " error" ,
26
+ // Comment
27
+ "multiline-comment-style" : [
28
+ " error" ,
29
+ " starred-block"
30
+ ],
31
+ "spaced-comment" : [
32
+ " error" ,
33
+ " always"
34
+ ],
35
+ // Semicolon
36
+ "semi" : [
37
+ " error" ,
38
+ " always"
39
+ ],
40
+ "semi-spacing" : " error" ,
41
+ "no-extra-semi" : " error" ,
42
+ "no-unexpected-multiline" : " error" ,
43
+ // Length, Lines
44
+ "max-len" : [
45
+ " error" ,
46
+ {
47
+ "code" : 80
48
+ }
49
+ ],
50
+ "max-lines" : [
51
+ " error" ,
52
+ {
53
+ "max" : 300 ,
54
+ "skipBlankLines" : true ,
55
+ "skipComments" : true
56
+ }
57
+ ],
58
+ "max-lines-per-function" : [
59
+ " error" ,
60
+ 50
61
+ ],
62
+ // Comma
63
+ "comma-style" : [
64
+ " error" ,
65
+ " last"
66
+ ],
67
+ "comma-dangle" : [
68
+ " error" ,
69
+ " always-multiline"
70
+ ],
71
+ "comma-spacing" : [
72
+ " error" ,
73
+ {
74
+ "before" : false ,
75
+ "after" : true
76
+ }
77
+ ],
78
+ // Spacing
79
+ "indent" : [
80
+ " error" ,
81
+ 2
82
+ ],
83
+ "space-infix-ops" : " error" ,
84
+ "space-before-blocks" : " error" ,
85
+ "keyword-spacing" : " error" ,
86
+ "arrow-spacing" : " error" ,
87
+ "space-before-function-paren" : [
88
+ " error" ,
89
+ {
90
+ "anonymous" : " always" ,
91
+ "named" : " never" ,
92
+ "asyncArrow" : " always"
93
+ }
94
+ ],
95
+ "newline-per-chained-call" : " error" ,
96
+ "space-in-parens" : [
97
+ " error" ,
98
+ " never"
99
+ ],
100
+ "array-bracket-spacing" : [
101
+ " error" ,
102
+ " never"
103
+ ],
104
+ "object-curly-spacing" : [
105
+ " error" ,
106
+ " always"
107
+ ],
108
+ "no-multiple-empty-lines" : [
109
+ " error" ,
110
+ {
111
+ "max" : 1 ,
112
+ "maxEOF" : 1
113
+ }
114
+ ],
115
+ // Brace
116
+ "brace-style" : " error" ,
117
+ // Quotes
118
+ "quotes" : [
119
+ " error" ,
120
+ " single"
121
+ ],
122
+ "quote-props" : [
123
+ " error" ,
124
+ " as-needed"
125
+ ]
126
+ },
127
+ // Typescript config
128
+ "extends" : [
129
+ " eslint:recommended" ,
130
+ " plugin:@typescript-eslint/recommended"
131
+ ],
132
+ "plugins" : [
133
+ " @typescript-eslint"
134
+ ],
135
+ "parser" : " @typescript-eslint/parser" ,
136
+ "parserOptions" : {
137
+ "ecmaVersion" : 6 ,
138
+ "sourceType" : " module"
139
+ }
140
+ }
0 commit comments