-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
102 lines (102 loc) · 3.03 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
96
97
98
99
100
101
102
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": ["react-app", "eslint:recommended"],
"rules": {
"prefer-const": "error",
"no-var": "error",
"no-multi-assign": "error",
"no-plusplus": "off",
"no-new-object": "error",
"object-shorthand": "error",
"quote-props": ["error", "as-needed"],
"no-prototype-builtins": "error",
"no-array-constructor": "error",
"array-callback-return": "error",
"prefer-destructuring": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"prefer-template": "error",
"template-curly-spacing": "error",
"no-eval": "error",
"func-style": "off",
"wrap-iife": "error",
"no-loop-func": "error",
"prefer-rest-params": "error",
"no-new-func": "error",
"space-before-blocks": "error",
"no-param-reassign": "error",
"prefer-spread": "error",
"prefer-arrow-callback": "error",
"arrow-spacing": "error",
"arrow-parens": ["error", "as-needed"],
"no-confusing-arrow": ["error", { "allowParens": true }],
"no-useless-constructor": "error",
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-iterator": "error",
"generator-star-spacing": ["error", { "before": false, "after": true }],
"dot-notation": "error",
"eqeqeq": "error",
"no-nested-ternary": "error",
"no-unneeded-ternary": "error",
"no-mixed-operators": [
"error",
{
"groups": [
["+", "-", "*", "/", "%", "**"],
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": true
}
],
"nonblock-statement-body-position": ["error", "beside"],
"brace-style": "error",
"no-else-return": "error",
"spaced-comment": ["error", "always"],
"keyword-spacing": "error",
"space-infix-ops": "error",
"eol-last": "error",
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"padded-blocks": ["error", "never"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 1 }],
"space-in-parens": "error",
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"block-spacing": "error",
"comma-spacing": "error",
"computed-property-spacing": "error",
"func-call-spacing": "error",
"key-spacing": "error",
"no-trailing-spaces": "error",
"comma-style": ["error", "last"],
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"no-new-wrappers": "error",
"radix": "error",
"id-length": "off",
"camelcase": "warn",
"new-cap": "error",
"no-underscore-dangle": "error",
"no-restricted-globals": [
"error",
"event",
"fdescribe",
"isNaN",
"isFinite"
],
"no-compare-neg-zero": "error",
"no-console": "off"
}
}