-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
172 lines (169 loc) · 3.16 KB
/
.eslintrc.yml
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
env:
browser: true
node: true
es6: true
extends: 'eslint:recommended'
installedESLint: true
parserOptions:
ecmaFeatures:
experimentalObjectRestSpread: true
rules:
indent:
- warn
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
no-eval:
- error
curly:
- error
- all
no-unsafe-finally:
- error
no-console:
- off
no-extra-semi:
- warn
no-unused-vars:
- warn
# This is the Regex pattern for variables to ignore. Because ESLint seems to
# have trouble recognizing that we DO use the React elements we build with
# JSX, we end up having to explicitly whitelist every single React element
# we use.
# When using multi-line strings in YAML as we're doing it, the line breaks
# turn into spaces. To combat this, we put a Regex or operator (|) at the
# beginning and ending of every line, so the Regex ends up basically saying
# "or space" a whole bunch, which is fine.
- varsIgnorePattern: |-
^(
|FullPage|ContractList|ContractElement|LivePreview|ContractBox|
|ContractForm|ClassesTable|Class|GenericInput|TextInput|TextArea|
|CheckBox|SelectInput|SelectOption|BasicComponent|
|LoginBar|LoginLoadThing|GoogleLoginArea|
)$
no-undef-init:
- error
block-scoped-var:
- error
complexity:
- warn
default-case:
- error
dot-notation:
- error
eqeqeq:
- error
- smart
no-caller:
- error
no-extend-native:
- error
no-extra-bind:
- warn
no-invalid-this:
- error
no-labels:
- error
no-lone-blocks:
- error
no-loop-func:
- error
no-magic-numbers:
- off # TODO this eventually should be at least 'warn'
no-multi-str:
- error
no-native-reassign:
- error
no-new:
- error
no-new-func:
- error
no-new-wrappers:
- error
no-proto:
- error
no-script-url:
- error
no-throw-literal:
- error
no-self-compare:
- error
no-unmodified-loop-condition:
- error
no-unused-expressions:
- warn
no-useless-concat:
- error
no-with:
- error
yoda:
- error
strict:
- error
- global
no-shadow:
- error
no-use-before-define:
- error
callback-return:
- warn
global-require:
- error
handle-callback-err:
- error
no-new-require:
- error
no-process-exit:
- error
max-len:
- warn
max-lines: # TODO come back to this, maybe set at 500?
- off
new-cap:
- error
new-parens:
- error
no-lonely-if:
- error
no-unneeded-ternary:
- warn
no-trailing-spaces:
- error
no-whitespace-before-property:
- error
one-var:
- error
- never
require-jsdoc: # TODO come back to this, we should be using JSDoc everywhere
- off
semi-spacing:
- error
arrow-body-style:
- warn
- as-needed
no-useless-computed-key:
- error
no-useless-rename:
- error
no-var:
- error
prefer-arrow-callback:
- warn
prefer-const:
- error
prefer-reflect:
- warn
prefer-rest-params:
- error
prefer-spread:
- error
no-confusing-arrow:
- error
- allowParens: true