-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
95 lines (95 loc) · 3.09 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"extends": [
"eslint:recommended"
],
"rules": {
"eqeqeq": ["error", "smart"],
"no-else-return": "error",
"no-fallthrough": 0,
"no-multi-spaces": "error",
"no-implicit-coercion": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-useless-return": "error",
"yoda": "error",
"no-param-reassign": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-use-before-define": "error",
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "error",
"capitalized-comments": "error",
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "expression"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"jsx-quotes": ["error", "prefer-single"],
"key-spacing": ["error", { "mode": "strict", "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"lines-around-comment": ["error", {
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": true
}],
"max-depth": ["error", 3],
"max-lines": ["error", 150],
"max-params": ["error", 3],
"max-statements-per-line": ["error", { "max": 1 }],
"max-statements": ["error", 15],
"new-cap": "error",
"new-parens": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-nested-ternary": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"one-var-declaration-per-line": ["error", "always"],
"one-var": ["error", "never"],
"operator-linebreak": ["error", "none"],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "consistent-as-needed"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi-spacing": "error",
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "ignore"
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": true,
"nonwords": false
}],
"spaced-comment": ["error", "always"],
"no-duplicate-imports": "error",
"no-useless-constructor": "error",
"prefer-const": "error",
"prefer-template": "error",
"template-curly-spacing": "error",
"no-console": 0
}
}