-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yml
168 lines (164 loc) · 2.84 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
env:
commonjs: true
es2021: true
node: true
extends: 'eslint:recommended'
parser: '@babel/eslint-parser'
parserOptions:
sourceType: module
ecmaVersion: 2021
requireConfigFile: false
babelOptions:
plugins:
- '@babel/syntax-top-level-await'
- '@babel/syntax-import-assertions'
rules:
indent:
- error
- tab
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- never
unicode-bom:
- error
- never
eqeqeq: error
no-caller: error
no-cond-assign: off
no-constant-condition: off
no-else-return: error
no-extend-native: error
no-return-await: error
no-shadow-restricted-names: error
no-unmodified-loop-condition: error
no-useless-call: error
no-use-before-define: error
no-var: error
require-await: error
prefer-const: error
prefer-rest-params: error
symbol-description: error
# spacing
arrow-spacing:
- error
- before: true
after: true
yield-star-spacing:
- error
- before: true
after: false
array-bracket-spacing:
- error
- always
- arraysInArrays: false
block-spacing:
- error
- always
brace-style:
- error
- stroustrup
camelcase:
- error
- properties: never
comma-dangle:
- error
- never
comma-spacing:
- error
- before: false
after: true
comma-style:
- error
- last
eol-last: error
func-call-spacing:
- error
- never
func-names:
- error
- never
implicit-arrow-linebreak:
- error
- beside
key-spacing:
- error
- beforeColon: false
afterColon: true
mode: minimum
keyword-spacing:
- error
- after: true
lines-between-class-members:
- error
- always
new-parens:
- error
- never
no-array-constructor: error
no-lonely-if: error
no-multiple-empty-lines: error
no-new-object: error
no-trailing-spaces: error
no-whitespace-before-property: error
object-curly-spacing:
- error
- always
operator-assignment: error
operator-linebreak:
- error
- before
padded-blocks:
- error
- never
quote-props:
- error
- as-needed
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- asyncArrow: always
anonymous: always
named: never
space-in-parens:
- error
- never
space-infix-ops: error
space-unary-ops:
- error
- words: true
nonwords: true
switch-colon-spacing:
- error
- before: false
after: true
template-tag-spacing:
- error
- always
# maximum
max-len:
- error
- 100
max-params:
- error
- 5
max-statements-per-line:
- error
- max: 2
# comment
capitalized-comments: error
multiline-comment-style:
- error
- separate-lines
spaced-comment:
- error
- always
globals:
bot: true