-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
57 lines (53 loc) · 1.68 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
51
52
53
54
55
56
57
module.exports = {
"extends": ["eslint:recommended"],
"env": {
"es6": true
},
"globals": {
"process": true,
"console": true,
"setTimeout": true,
"global": true,
"require": true,
"_esdown": true
},
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-cond-assign": ["off"],
"no-constant-condition": ["off"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"camelcase": ["error", { "properties": "always" }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"eqeqeq": ["error", "smart"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-throw-literal": ["error"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"comma-dangle": ["error", "always-multiline"],
"keyword-spacing": ["error"],
"no-trailing-spaces": ["error"],
"no-multi-spaces": ["error"],
"no-spaced-func": ["error"],
"no-whitespace-before-property": ["error"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"eol-last": ["error"],
"quotes": ["error", "single", { "avoidEscape": true }],
"no-implicit-globals": ["error"],
"no-useless-concat": ["error"],
"space-infix-ops": ["error", { "int32Hint": true }],
"semi-spacing": ["error", { "before": false, "after": true }],
"semi": ["error", "always"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error"],
"max-len": ["error", 100]
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
}
};