This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
165 lines (160 loc) · 2.93 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
parserOptions:
sourceType: module
failOnError: true
ecmaVersion: 2021
env:
browser: true
es2021: true
rules:
max-len:
- warn
- code: 88
ignoreUrls: true
ignoreStrings: true
ignoreTemplateLiterals: true
ignoreRegExpLiterals: true
block-spacing:
- warn
- never
curly:
- warn
- all
no-unneeded-ternary:
- warn
- defaultAssignment: false
no-unused-vars:
- warn
- ignoreRestSiblings: true
no-implicit-globals: off
no-invalid-this:
- error
no-loop-func: warn
no-multi-spaces: warn
no-new: warn
no-param-reassign: warn
no-return-assign:
- warn
- always
no-sequences: warn
no-unused-expressions: warn
no-useless-concat: warn
no-useless-escape: warn
camelcase:
- off
- properties: always
comma-dangle:
- warn
- arrays: always-multiline
objects: always-multiline
imports: always-multiline
exports: always-multiline
functions: only-multiline
comma-spacing:
- warn
- before: false
after: true
computed-property-spacing:
- warn
- never
indent-legacy:
- off
- 2
- SwitchCase: 1
jsx-quotes:
- warn
- prefer-double
key-spacing:
- warn
- beforeColon: false
afterColon: true
mode: strict
keyword-spacing:
- warn
- before: true
after: true
no-trailing-spaces: warn
object-curly-newline:
- warn
- consistent: true
object-property-newline:
- warn
- allowAllPropertiesOnSameLine: true
object-curly-spacing:
- warn
- always
semi:
- warn
- never
semi-spacing: warn
space-before-blocks:
- warn
- always
space-before-function-paren:
- warn
- anonymous: never
named: never
asyncArrow: always
space-in-parens:
- warn
- never
space-infix-ops: warn
space-unary-ops:
- warn
- words: true
nonwords: false
no-template-curly-in-string: warn
no-unsafe-negation: warn
valid-jsdoc: off
arrow-body-style:
- warn
- as-needed
arrow-parens:
- warn
- as-needed
arrow-spacing:
- warn
- before: true
after: true
no-duplicate-imports: warn
no-useless-computed-key: warn
no-useless-constructor: warn
no-useless-rename: warn
no-var: warn
object-shorthand:
- warn
- always
prefer-arrow-callback: warn
prefer-const:
- warn
- destructuring: any
ignoreReadBeforeAssign: false
prefer-destructuring:
- warn
- array: false
object: true
- enforceForRenamedProperties: false
prefer-rest-params: warn
prefer-spread: warn
prefer-template:
- warn
rest-spread-spacing:
- warn
- never
template-curly-spacing:
- warn
- never
no-console:
- off
- allow:
- error
no-constant-condition: warn
operator-linebreak:
- off
- before
no-unreachable: warn
no-invalid-regexp:
- error
- allowConstructorFlags:
- d
extends:
- eslint:recommended