-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
47 lines (47 loc) · 1.18 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
43
44
45
46
47
{
"env": {
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"root": true,
"rules": {
"arrow-parens": ["error", "as-needed"],
"dot-location": ["error", "object"],
"indent": ["error", 2, {
"CallExpression": {"arguments": 2},
"FunctionDeclaration": {"parameters": 2},
"FunctionExpression": {"parameters": 2},
"SwitchCase": 1
}],
"linebreak-style": ["error", "unix"],
"max-classes-per-file": ["error", 2],
"max-len": ["error", 120],
"no-console": "off",
"no-multiple-empty-lines": ["error", {"max": 2, "maxBOF": 0, "maxEOF": 0}],
"no-restricted-globals": [
"error",
{
"name": "fdescribe",
"message": "Focused test suites are disallowed."
},
{
"name": "fit",
"message": "Focused tests are disallowed."
},
{
"name": "xdescribe",
"message": "Skipped test suites are disallowed."
},
{
"name": "xit",
"message": "Skipped tests are disallowed."
}
],
"no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}