-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.json
43 lines (43 loc) · 1.63 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
{
"rules": {
"indent": ["error", "tab"],
"quotes": ["error", "single"],
"quote-props": ["warn", "as-needed"],
"semi": ["error", "always"],
"keyword-spacing": ["error"],
"no-unused-vars": ["warn", { "vars": "all", "args": "none" }],
"no-console": ["off"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-new-object": ["error"],
"no-array-constructor": ["error"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"guard-for-in": "error",
"no-spaced-func": "error",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"handle-callback-err": "error",
"comma-spacing": ["error", {"before": false, "after": true}],
"one-var": ["error", "never"],
"no-redeclare": 0,
"comma-dangle": ["error", "never"],
"arrow-parens": ["warn", "always"],
"arrow-spacing": ["error"],
"no-confusing-arrow": ["error"],
"no-useless-computed-key": ["error"],
"object-shorthand": ["warn", "methods"],
"prefer-arrow-callback": ["error"],
"prefer-rest-params": ["warn"],
"template-curly-spacing": ["warn", "never"]
},
"env": {
"node": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended"
}