-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
50 lines (50 loc) · 1.05 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
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": [
"airbnb-base",
"plugin:security/recommended"
],
"plugins": [
"security"
],
"parserOptions": {
"ecmaVersion": 2016,
"ecmaFeatures": {
// "jsx": true
},
"sourceType": "module"
},
"env": {
"node": true,
"mocha": true
},
"rules": {
// disable requiring trailing commas because it might be nice to revert to
// being JSON at some point, and I don't want to make big changes now.
"comma-dangle": 0,
//do not require space following // because WebStorm (possibly other editors) comments
// a block without adding a space
"spaced-comment": 0,
"no-var": 1,
"indent": [
"error",
4,
{
"SwitchCase": 1,
"VariableDeclarator": 2
}
],
"no-param-reassign": [
"error",
{
"props": false
}
]
}
// , "globals": {
// "$": true,
// "_": true
// "it": true,
// }
}