-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
46 lines (42 loc) · 1 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
{
"extends": "eslint:recommended",
"rules": {
// Errors
"no-empty": 1,
"no-extra-boolean-cast": 1,
"strict": 0,
// Best practices
"consistent-return": 0,
"dot-notation": 1,
"no-alert": 1,
"no-extend-native": 1,
"no-loop-func": 1,
"no-multi-spaces": 1,
"no-shadow": 1,
"no-unused-vars": 1,
"no-unused-expressions": 0,
"no-use-before-define": 1,
"no-console": 0,
"yoda": 1,
// Style
"camelcase": 1,
"indent": [ 0, 4, { "SwitchCase": 1, "VariableDeclarator": 1 } ],
"linebreak-style": [ 2, "unix" ],
"new-cap": 0,
"no-underscore-dangle": 0,
"quotes": [ 2, "single" ],
"semi": [ 2, "never" ]
},
"globals": {
"expect": true
},
"parserOptions": {
"sourceType": "module",
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jquery": true
}
}