-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
42 lines (42 loc) · 1 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"template-curly-spacing": ["error", "never"],
"semi-style": ["error", "last"],
"semi": ["error", "always"],
"quotes": ["error", "single",
{"avoidEscape": true}
],
"prefer-template": ["error"],
"prefer-const": ["error"],
"prefer-arrow-callback": ["error"],
"no-var": ["error"],
"no-trailing-spaces": ["error"],
"keyword-spacing": [
"error",
{"before": true, "after": true}
],
"brace-style": [
"error",
"1tbs",
{ "allowSingleLine": true }
],
"block-spacing": "error"
}
}