-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
58 lines (58 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
48
49
50
51
52
53
54
55
56
57
58
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:promise/recommended"
],
"env": {
"es6": true,
"node": true
},
"overrides": [
{
"files": [ "app/**/*.spec.js", "spec/**/*.js", "utils/**/*.spec.js" ],
"globals": {
"afterEach": "readonly",
"before": "readonly",
"beforeEach": "readonly",
"describe": "readonly",
"it": "readonly"
},
"rules": {
"node/no-unpublished-require": "off"
}
},
{
"files": [ "commands/**/*.js" ],
"rules": {
"no-console": "off",
"no-process-exit": "off"
}
},
{
"files": [ "spec/**/*.js" ],
"rules": {
"no-console": "off"
}
},
{
"files": [ "spec/**/*.chai.js" ],
"rules": {
"func-names": "off"
}
}
],
"rules": {
"func-names": [1, "as-needed"],
"no-console": "error",
"no-extra-boolean-cast": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_([^_]|$)",
"varsIgnorePattern": "^_+([^_]|$)"
}
],
"prefer-destructuring": ["error", { "object": false, "array": false }]
}
}