-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
86 lines (79 loc) · 2.29 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": [
"react",
"import"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"rules": {
"comma-dangle": [2, "never"],
"block-scoped-var": 0,
"complexity": [1, 20],
"default-case": 2,
"no-else-return": 0,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-throw-literal": 2,
"no-warning-comments": [1, { "terms": ["todo", "fixme"], "location": "start" }],
"radix": 2,
"wrap-iife": [2, "inside"],
"yoda": [2, "never"],
"strict": [2, "global"],
"no-catch-shadow": 2,
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"indent": [2, 2],
"linebreak-style": [2, "unix"],
"max-nested-callbacks": [2, 4],
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
"new-parens": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [2, {"max": 1}],
"no-nested-ternary": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2, "never"],
"operator-linebreak": [2, "before"],
"padded-blocks": [2, "never"],
"quotes": [2, "double", "avoid-escape"],
"keyword-spacing": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"no-var": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"prefer-const": 2,
"max-depth": [2, 5],
// "max-len": [2, 250, 4],
"react/jsx-boolean-value": [2, "never"],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-no-undef": 2,
"jsx-quotes": 2,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-danger": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
// "import/extensions": [2, "never"],
"react/self-closing-comp": 1,
"react/sort-comp": 2,
"react/jsx-wrap-multilines": 2
}
}