-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
201 lines (201 loc) · 3.45 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
rules:
indent:
- 2
- 4
# quotes:
# - 1
# - single
linebreak-style:
- 2
- unix
semi:
- 2
- always
no-console: 1
no-debugger: 1
no-empty: 1
valid-typeof: 1
accessor-pairs: 1
block-scoped-var: 2
consistent-return: 2
curly: 1
dot-location:
- 2
- property
eqeqeq:
- 1
- "allow-null"
guard-for-in: 1
no-alert: 1
no-else-return: 1
no-div-regex: 1
no-eval: 2
no-extend-native: 2
no-extra-bind: 1
no-fallthrough: 1
no-floating-decimal: 1
no-implied-eval: 2
no-invalid-this: 0 # Currently the way we do things angers this rule
no-lone-blocks: 2
no-loop-func: 2
no-multi-spaces: 1
no-multi-str: 2
no-new-func: 2
no-new-wrappers: 2
no-new: 1
no-octal-escape: 2
no-proto: 1
no-redeclare:
- 2
- builtinGlobals: true
no-return-assign: 1
no-script-url: 2
no-self-compare: 2
no-sequences: 1
no-throw-literal: 2
no-unused-expressions: 2
no-useless-concat: 1
no-void: 2
no-warning-comments:
- 1
-
terms:
- todo
- fixme
- hack
- bug
- why
location: "start"
no-with: 2
vars-on-top: 0
wrap-iife:
- 2
- inside
yoda:
- 1
- never
strict:
- 2
- global
no-label-var: 2
no-shadow-restricted-names: 2
no-shadow:
- 1
-
builtinGlobals: false # There are a lot of stupid globals like 'name'
hoist: "all"
no-undef-init: 2
no-unused-vars:
- 1
-
vars: "all"
args: "none"
no-use-before-define: 2
new-parens: 2
no-array-constructor: 2
no-new-object: 2
no-unneeded-ternary: 2
arrow-parens: 2
constructor-super: 2
no-class-assign: 2
no-const-assign: 2
no-dupe-class-members: 2
no-this-before-super: 2
require-yield: 1
# Non-subjective
eol-last: 2
no-trailing-spaces: 2
# Let's get subjective!
array-bracket-spacing: 1
block-spacing: 1
brace-style:
- 1
- 1tbs
# camelcase: 1
comma-spacing: 1
comma-style:
- 1
- last
computed-property-spacing: 1
consistent-this:
- 1
- self
func-style:
- 1
- declaration
jsx-quotes: 1
key-spacing:
- 1
-
beforeColon: false
afterColon: true
mode: "minimum"
# align: "value" # Some Day :(
lines-around-comment:
- 1
-
beforeBlockComment: true
afterBlockComment: false
beforeLineComment: false
afterLineComment: false
allowBlockStart: true
allowBlockEnd: false
max-nested-callbacks:
- 1
- 3
new-cap: 1
no-inline-comments: 1 # These break formatters (yes this comment is ironic)
no-lonely-if: 1
no-mixed-spaces-and-tabs:
- 1
- smart-tabs
no-multiple-empty-lines:
- 1
- max: 3
no-nested-ternary: 1
no-spaced-func: 1
padded-blocks:
- 1
- never
quote-props:
- 1
- consistent-as-needed
semi-spacing: 1
operator-linebreak: 1
object-curly-spacing:
- 1
- always
one-var:
- 1
- initialized: "never"
space-after-keywords: 1
space-before-keywords: 1
space-before-blocks: 1
space-before-function-paren:
- 1
- never
space-in-parens:
- 1
- never
space-infix-ops: 1
space-return-throw-case: 1
space-unary-ops: 1
spaced-comment:
- 1
- always
-
markers:
- "/"
- "!"
exceptions:
- "-"
- "*"
arrow-spacing: 1
generator-star-spacing: 1
# prefer-arrow-callback: 1
comma-dangle:
- 1
- "never"
env:
es6: true
# browser: true