-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
52 lines (51 loc) · 1.21 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
{
"extends": [
"airbnb-base"
],
"env": {
"browser": "node"
},
"rules": {
"arrow-body-style": "off",
"no-shadow": "warn",
"no-lonely-if": "warn",
"import/newline-after-import": "warn",
"global-require": "warn",
"new-cap": "warn",
"max-len": "off",
"no-param-reassign": "off",
"no-else-return": "warn",
"no-loop-func": "warn",
"no-console": "off",
"prefer-const": "warn",
"prefer-template": "off",
"prefer-destructuring": "off",
"no-const-assign": "warn",
"yoda": "warn",
"spaced-comment": "warn",
"camelcase": "warn",
"import/no-dynamic-require": "warn",
"import/no-extraneous-dependencies": "warn",
"no-bitwise": "error",
"curly": "error",
"eqeqeq": "warn",
"wrap-iife": "error",
"indent": [ 2, 2, { "SwitchCase": 1 } ],
"no-use-before-define": "warn",
"no-caller": "error",
"quotes": [ "warn", "single" ],
"no-undef": "error",
"no-unused-vars": "warn",
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"no-async-promise-executor": "off"
},
"overrides": [
{
"files": ["public/js/*.js"],
"env": {
"browser": "true",
"jquery": "true"
}
}
]
}