-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
57 lines (57 loc) · 1.61 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
{
"env": {
"node": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": [
"security"
],
"extends": [
"eslint:recommended",
"plugin:security/recommended",
"plugin:node/recommended"
],
"rules": {
"indent": "error",
"linebreak-style": "error",
"no-console": "error",
"no-extra-parens": [
"error",
"all",
{
"nestedBinaryExpressions": false
}
],
"no-loss-of-precision": "error",
"no-unreachable-loop": "error",
"node/callback-return": "warn",
"node/exports-style": "error",
"node/global-require": "off",
"node/handle-callback-err": "error",
"node/no-new-require": "error",
"node/no-path-concat": "error",
"node/no-process-env": "error",
"node/no-process-exit": "error",
"node/prefer-global/buffer": "error",
"node/prefer-global/console": "error",
"node/prefer-global/process": "error",
"node/prefer-global/text-decoder": "error",
"node/prefer-global/text-encoder": "error",
"node/prefer-global/url": "error",
"node/prefer-global/url-search-params": "error",
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "error",
"quotes": [
"error",
"single"
],
"security/detect-object-injection": "off",
"require-atomic-updates": "off",
"semi": "error"
}
}