-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
196 lines (196 loc) · 3.45 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
env:
browser: true
commonjs: true
es6: true
node: true
plugins:
- '@typescript-eslint'
- 'react'
globals:
mobxtract: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:react/recommended'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2018
sourceType: module
rules:
'@typescript-eslint/no-empty-interface':
- off
'@typescript-eslint/ban-ts-ignore':
- off
'@typescript-eslint/no-use-before-define':
- off
'@typescript-eslint/explicit-function-return-type':
- off
prefer-const:
- off
indent:
- warn
- 2
- ignoreComments: true
SwitchCase: 1
linebreak-style:
- error
- unix
quotes:
- off
# # quotes:
# # - warn
# # - double
no-unused-vars:
- warn
# no-magic-numbers:
# - warn
# - ignoreArrayIndexes: true
# detectObjects: true
# ignore: [0, 1]
no-warning-comments:
- warn
eqeqeq:
- warn
- smart
# default-case:
# - warn
no-useless-concat:
- warn
array-bracket-newline:
- warn
- consistent
# array-bracket-spacing:
# - warn
# - always
array-element-newline:
- warn
- consistent
arrow-spacing:
- warn
- before: true
after: true
brace-style:
- warn
- 1tbs
block-spacing:
- warn
- always
comma-dangle:
- warn
- only-multiline
comma-spacing:
- warn
eol-last:
- warn
- always
func-call-spacing:
- warn
key-spacing:
- warn
- singleLine:
beforeColon: false
afterColon: true
mode: strict
multiLine:
beforeColon: false
afterColon: true
mode: minimum
lines-between-class-members:
- warn
- always
- exceptAfterSingleLine: true
# max-depth:
# - warn
new-parens:
- warn
newline-per-chained-call:
- warn
- ignoreChainWithDepth: 4
no-lonely-if:
- warn
no-multiple-empty-lines:
- warn
- max: 2
no-trailing-spaces:
- warn
no-unneeded-ternary:
- warn
no-whitespace-before-property:
- warn
object-curly-newline:
- warn
- multiline: true
consistent: true
object-curly-spacing:
- warn
- always
object-property-newline:
- warn
- allowAllPropertiesOnSameLine: true
one-var:
- warn
- separateRequires: true
one-var-declaration-per-line:
- warn
- initializations
operator-assignment:
- warn
operator-linebreak:
- warn
- after
padded-blocks:
- warn
- classes: always
switches: never
semi-spacing:
- warn
semi-style:
- warn
space-before-blocks:
- warn
- functions: never
keywords: always
classes: always
keyword-spacing:
- warn
- overrides:
if: { after: false }
for: { after: false }
while: { after: false }
switch: { after: false }
space-before-function-paren:
- warn
- anonymous: never
named: never
asyncArrow: always
space-in-parens:
- warn
space-infix-ops:
- warn
space-unary-ops:
- warn
spaced-comment:
- warn
arrow-body-style:
- warn
- as-needed
arrow-parens:
- warn
- as-needed
max-len:
- warn
- code: 120
tabWidth: 1
ignoreUrls: true
ignoreRegExpLiterals: true
no-var:
- warn
no-console:
- off
implicit-arrow-linebreak:
- off
no-empty-pattern:
- off
no-constant-condition:
- off