-
Notifications
You must be signed in to change notification settings - Fork 171
/
.eslintrc.json
43 lines (43 loc) · 938 Bytes
/
.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
43
{
"env": {
"browser": true,
"es2020": true,
"jest/globals": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:jest/recommended"],
"globals": {
"jQuery": true,
"$": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"brace-style": ["error", "1tbs"],
"camelcase": "error",
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"consistent-return": "error",
"curly": ["error", "all"],
"indent": ["error", 2],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"linebreak-style": ["error", "unix"],
"max-len": ["error", {
"code": 80,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true
}],
"quotes": ["error", "single", {
"avoidEscape": true
}],
"semi": ["error", "always"],
"space-infix-ops": "error"
}
}