-
Notifications
You must be signed in to change notification settings - Fork 79
/
.eslintrc
72 lines (69 loc) · 1.71 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
{
"extends": ["airbnb-base"],
"env": {
"es6": true,
"browser": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"strict": 0,
"no-constant-condition": 2,
"no-extra-parens": [2, "functions"],
"no-inner-declarations": [2, "functions"],
"no-negated-in-lhs": 1,
"no-unused-expressions": [
2,
{"allowShortCircuit": true, "allowTernary": true}
],
"no-useless-call": 2,
"vars-on-top": 1,
"no-catch-shadow": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 2,
"no-undef-init": 2,
"no-undef": 2,
"no-unused-vars": 1,
"no-use-before-define": [2, "nofunc"],
"brace-style": [2, "stroustrup", {"allowSingleLine": true}],
"consistent-this": [2, "self"],
"max-depth": [1, 3],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"newline-after-var": [1, "always"],
"no-negated-condition": 1,
"object-curly-spacing": [2, "never"],
"operator-linebreak": [2, "before"],
"semi": 1,
"keyword-spacing": [2, {"before": true, "after": true}],
"space-infix-ops": [2, {"int32Hint": false}],
"class-methods-use-this": 0,
"block-spacing": ["error", "never"],
"no-plusplus": 0,
"no-mixed-operators": ["error", {"allowSamePrecedence": true}],
"max-len": "off",
"indent": ["error", "tab"],
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"no-tabs": 0,
"react/prop-types": 0,
"react/no-multi-comp": 1,
"react/require-default-props": 0,
"react/no-unescaped-entities": 0,
"import/extensions": 1
},
"plugins": ["react", "prettier"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
}
}