-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (49 loc) · 1.33 KB
/
.eslintrc.js
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
module.exports = {
"extends": "airbnb-base",
"plugins": [
"import"
],
"env": {
"node": true
},
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"no-prototype-builtins": "off",
"max-len": ["error", 140, 2, {
"ignoreUrls": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
}],
"no-await-in-loop":"off",
"no-plusplus":"off",
"no-shadow":"off",
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"guard-for-in": "off",
"class-methods-use-this": "off",
"no-use-before-define": ["error", { "functions": false, "classes": false,"variables":false }],
"prefer-destructuring": ["error", {"array":false,"object":true}],
"no-empty":["error",{"allowEmptyCatch":true}],
"array-callback-return":"off",
"consistent-return":"off",
"prefer-promise-reject-errors":"off",
"global-require":"off",
"default-case":"off",
"func-names":"off",
"no-console":"off",
"new-cap":"off",
"prefer-rest-params":"off"
}
};