-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
58 lines (58 loc) · 1.88 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
{
"plugins": [
"mocha"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:mocha/recommended"
],
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"array-bracket-spacing": ["error"],
"array-callback-return": ["error"],
"arrow-parens": ["error"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error"],
"consistent-this": ["error", "self"],
"dot-notation": ["error"],
"eol-last": ["error"],
"eqeqeq": ["error", "always"],
"func-style": ["error", "expression", { "allowArrowFunctions": true }],
"handle-callback-err": ["error"],
"indent": ["error", 2, {"SwitchCase": 1, "VariableDeclarator": { "let": 2, "const": 2}}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"mocha/no-hooks-for-single-case": ["off"],
"new-cap": ["error", {"capIsNew": false}],
"newline-per-chained-call": ["off"],
"no-console": ["error"],
"no-iterator": ["error"],
"no-mixed-requires": ["error"],
"no-nested-ternary": ["off"],
"no-path-concat": ["error"],
"no-unneeded-ternary": ["error"],
"no-unused-vars": ["error", {"vars": "all", "args": "after-used"}],
"no-useless-constructor": ["off"],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-template": ["off"],
"quote-props": ["error", "as-needed"],
"semi": ["error", "always"],
"space-before-blocks": ["error"],
"space-in-parens": ["error"],
"space-infix-ops": ["error"],
"strict": ["error", "never"],
"quotes": ["error", "single"]
}
}