-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
63 lines (63 loc) · 1.53 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
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"sourceType": "module"
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"destructuring": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"templateStrings": true,
"classes": true,
"modules": true
},
"rules": {
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": 2,
"curly": 2,
"eqeqeq": [2, "smart"],
"guard-for-in": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"init-declarations": [2, "always"],
"max-nested-callbacks": [2, 4],
"no-caller": 2,
"no-console": 2,
"no-const-assign": 2,
"no-else-return": 2,
"no-empty": 2,
"no-empty-pattern": 2,
"no-floating-decimal": 2,
"no-lonely-if": 2,
"no-mixed-requires": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [2, {
"max": 2
}],
"no-param-reassign": 0,
"no-process-exit": 0,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": 0,
"no-undef": 2,
"no-undefined": 0,
"no-underscore-dangle": 0,
"no-unused-vars": [2, { "args": "none", "argsIgnorePattern": "^_" }],
"no-use-before-define": 0,
"no-useless-concat": 2,
"no-var": 2,
"prefer-const": 2,
"quotes": [2, "single"],
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never"
}],
"space-in-parens": [2, "never"],
"yoda": [2, "never", { "exceptRange": true }]
}
}