Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e367ae9

Browse filesBrowse files
committed
Update eslint config
1 parent 2a93795 commit e367ae9
Copy full SHA for e367ae9

File tree

Expand file treeCollapse file tree

3 files changed

+269
-173
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+269
-173
lines changed

‎.eslintignore

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

‎.eslintrc.json

Copy file name to clipboard
+268Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 2020
10+
},
11+
"globals": {
12+
"BigInt": true
13+
},
14+
"rules": {
15+
"indent": [
16+
"error",
17+
2
18+
],
19+
"linebreak-style": [
20+
"error",
21+
"unix"
22+
],
23+
"quotes": [
24+
"error",
25+
"single"
26+
],
27+
"semi": [
28+
"error",
29+
"always"
30+
],
31+
"no-loop-func": [
32+
"error"
33+
],
34+
"block-spacing": [
35+
"error",
36+
"always"
37+
],
38+
"camelcase": [
39+
"error"
40+
],
41+
"eqeqeq": [
42+
"error",
43+
"always"
44+
],
45+
"strict": [
46+
"error",
47+
"global"
48+
],
49+
"brace-style": [
50+
"error",
51+
"1tbs",
52+
{
53+
"allowSingleLine": true
54+
}
55+
],
56+
"comma-style": [
57+
"error",
58+
"last"
59+
],
60+
"comma-spacing": [
61+
"error",
62+
{
63+
"before": false,
64+
"after": true
65+
}
66+
],
67+
"eol-last": [
68+
"error"
69+
],
70+
"func-call-spacing": [
71+
"error",
72+
"never"
73+
],
74+
"key-spacing": [
75+
"error",
76+
{
77+
"beforeColon": false,
78+
"afterColon": true,
79+
"mode": "minimum"
80+
}
81+
],
82+
"keyword-spacing": [
83+
"error",
84+
{
85+
"before": true,
86+
"after": true,
87+
"overrides": {
88+
"function": {
89+
"after": false
90+
}
91+
}
92+
}
93+
],
94+
"max-len": [
95+
"error",
96+
{
97+
"code": 80,
98+
"ignoreUrls": true
99+
}
100+
],
101+
"max-nested-callbacks": [
102+
"error",
103+
{
104+
"max": 7
105+
}
106+
],
107+
"new-cap": [
108+
"error",
109+
{
110+
"newIsCap": true,
111+
"capIsNew": false,
112+
"properties": true
113+
}
114+
],
115+
"new-parens": [
116+
"error"
117+
],
118+
"no-lonely-if": [
119+
"error"
120+
],
121+
"no-trailing-spaces": [
122+
"error"
123+
],
124+
"no-unneeded-ternary": [
125+
"error"
126+
],
127+
"no-whitespace-before-property": [
128+
"error"
129+
],
130+
"object-curly-spacing": [
131+
"error",
132+
"always"
133+
],
134+
"operator-assignment": [
135+
"error",
136+
"always"
137+
],
138+
"operator-linebreak": [
139+
"error",
140+
"after"
141+
],
142+
"semi-spacing": [
143+
"error",
144+
{
145+
"before": false,
146+
"after": true
147+
}
148+
],
149+
"space-before-blocks": [
150+
"error",
151+
"always"
152+
],
153+
"space-before-function-paren": [
154+
"error",
155+
{
156+
"anonymous": "never",
157+
"named": "never",
158+
"asyncArrow": "always"
159+
}
160+
],
161+
"space-in-parens": [
162+
"error",
163+
"never"
164+
],
165+
"space-infix-ops": [
166+
"error"
167+
],
168+
"space-unary-ops": [
169+
"error",
170+
{
171+
"words": true,
172+
"nonwords": false,
173+
"overrides": {
174+
"typeof": false
175+
}
176+
}
177+
],
178+
"no-unreachable": [
179+
"error"
180+
],
181+
"no-global-assign": [
182+
"error"
183+
],
184+
"no-self-compare": [
185+
"error"
186+
],
187+
"no-unmodified-loop-condition": [
188+
"error"
189+
],
190+
"no-constant-condition": [
191+
"error",
192+
{
193+
"checkLoops": false
194+
}
195+
],
196+
"no-console": [
197+
"off"
198+
],
199+
"no-useless-concat": [
200+
"error"
201+
],
202+
"no-useless-escape": [
203+
"error"
204+
],
205+
"no-shadow-restricted-names": [
206+
"error"
207+
],
208+
"no-use-before-define": [
209+
"error",
210+
{
211+
"functions": false
212+
}
213+
],
214+
"arrow-parens": [
215+
"error",
216+
"as-needed"
217+
],
218+
"arrow-body-style": [
219+
"error",
220+
"as-needed"
221+
],
222+
"arrow-spacing": [
223+
"error"
224+
],
225+
"no-confusing-arrow": [
226+
"error",
227+
{
228+
"allowParens": true
229+
}
230+
],
231+
"no-useless-computed-key": [
232+
"error"
233+
],
234+
"no-useless-rename": [
235+
"error"
236+
],
237+
"no-var": [
238+
"error"
239+
],
240+
"object-shorthand": [
241+
"error",
242+
"always"
243+
],
244+
"prefer-arrow-callback": [
245+
"error"
246+
],
247+
"prefer-const": [
248+
"error"
249+
],
250+
"prefer-numeric-literals": [
251+
"error"
252+
],
253+
"prefer-rest-params": [
254+
"error"
255+
],
256+
"prefer-spread": [
257+
"error"
258+
],
259+
"rest-spread-spacing": [
260+
"error",
261+
"never"
262+
],
263+
"template-curly-spacing": [
264+
"error",
265+
"never"
266+
]
267+
}
268+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.