-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc
65 lines (65 loc) · 1.79 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
{
"plugins": ["node", "immutable", "chai-friendly", "mocha"],
"root": true,
"env": {
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:chai-friendly/recommended",
"plugin:mocha/recommended"
],
"rules": {
"semi": [2, "never"],
"strict": 0,
"quotes": ["error", "single", { "avoidEscape": true }],
"object-curly-spacing": [2, "always"],
"array-bracket-spacing": [2, "never"],
"computed-property-spacing": [2, "never"],
"no-unused-vars": 0,
"no-multi-spaces": 1,
"no-constant-condition": 1,
"camelcase": 0,
"no-use-before-define": [
2,
"nofunc"
],
"no-useless-escape": 0,
"no-unsafe-finally": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2,
"comma-dangle": 0,
"arrow-spacing": "error",
"space-in-parens": ["error", "never"],
"no-else-return": ["error", { "allowElseIf": false }],
"no-useless-return": "error",
"rest-spread-spacing": "error",
"keyword-spacing": ["error", { "before": true, "after": true }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"prefer-template": "error",
"no-var": "error",
"prefer-const": [
"error", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"max-len": ["error", { "code": 120 , "ignoreTemplateLiterals": true}],
"mocha/no-mocha-arrows": 0,
"mocha/no-setup-in-describe": 0
},
"overrides": [
{
"files": ["*.test.js"],
"rules": {
"immutable/no-let": 0
}
}
],
}