This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
80 lines (80 loc) · 2.78 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended"
],
"installedESLint": true,
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"keyword-spacing": ["error", {"before": true, "after": true}],
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": "error",
"prefer-const": ["error"],
"eqeqeq": ["error", "always"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"space-infix-ops": ["error"],
"generator-star-spacing": ["error", {"before": true, "after": true}],
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"prefer-spread": "error",
"yield-star-spacing": ["error", "both"],
"no-var": "error",
"prefer-template": "error",
"rest-spread-spacing": ["error"],
"prefer-rest-params": "error",
"prefer-arrow-callback": ["error", {"allowNamedFunctions": true}],
"no-duplicate-imports": "error",
"object-curly-spacing": ["error", "always"],
"no-unsafe-negation": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"no-else-return": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-multi-spaces": "error",
"no-useless-return": "error",
"wrap-iife": ["error", "inside"],
"yoda": ["error", "never", { "exceptRange": true }],
"no-undef-init": "error",
"array-bracket-spacing": ["error", "never", {"objectsInArrays": true}],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"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"],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error", { "beforeColon": false }],
"new-parens": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 1, "maxEOF": 1 }],
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"quote-props": ["error", "as-needed"],
"space-in-parens": ["error", "never"],
"space-unary-ops": "error",
"spaced-comment": ["error", "always"],
"template-tag-spacing": ["error", "always"],
"object-shorthand": ["error", "always"]
}
}