-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
121 lines (120 loc) · 3.47 KB
/
.eslintrc.json
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"env": {
"browser": true,
"es2020": true
},
"extends": ["plugin:react/recommended", "airbnb"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"class-methods-use-this": ["off"],
"complexity": ["off", 11],
"no-magic-numbers": [
"error",
{
"ignore": [0, 1, 2, 100],
"ignoreArrayIndexes": true,
"enforceConst": true,
"detectObjects": false
}
],
"react/button-has-type": [
"error",
{
"button": true,
"submit": true,
"reset": true
}
],
"no-console": ["off"],
"no-underscore-dangle": ["off"],
"no-param-reassign": ["off"],
"consistent-return": ["off"],
"no-undef": ["off"],
"max-len": [
"error",
{
"code": 90,
"ignoreComments": true,
"ignoreUrls": true
}
],
"object-curly-newline": ["off"],
"import/no-extraneous-dependencies": ["off"],
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
"react/default-props-match-prop-types": [
"error",
{"allowRequiredDefaults": false}
],
"react/no-array-index-key": ["off"],
"react/destructuring-assignment": ["error", "always"],
"react/forbid-component-props": ["error"],
"react/forbid-prop-types": ["error"],
"react/no-did-mount-set-state": ["error"],
"react/no-did-update-set-state": ["error"],
"react/jsx-props-no-spreading": ["off"],
"react/no-multi-comp": ["error", {"ignoreStateless": false}],
"react/prefer-stateless-function": ["off"],
"react/no-access-state-in-setstate": ["error"],
"react/no-redundant-should-component-update": ["error"],
"react/no-this-in-sfc": ["error"],
"react/no-typos": ["error"],
"react/no-unsafe": ["error"],
"react/no-unused-state": ["error"],
"react/no-will-update-set-state": ["error"],
"react/prefer-es6-class": ["error", "always"],
"react/self-closing-comp": ["error"],
"react/state-in-constructor": ["error", "always"],
"react/void-dom-elements-no-children": ["error"],
"react/jsx-closing-bracket-location": ["error"],
"react/jsx-closing-tag-location": ["error"],
"react/jsx-curly-newline": ["error"],
"react/jsx-fragments": ["error"],
"react/jsx-max-depth": ["error", {"max": 8}],
"react/jsx-no-useless-fragment": ["error"],
"react/jsx-curly-spacing": ["error", {"when": "always"}],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-indent": [
"error",
2,
{"checkAttributes": true, "indentLogicalExpressions": true}
],
"react/jsx-indent-props": ["error", 2],
"react/jsx-key": ["error"],
"react/jsx-max-props-per-line": [
"error",
{"maximum": 1, "when": "multiline"}
],
"react/jsx-tag-spacing": [
"error",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
],
"react/jsx-wrap-multilines": [
"error",
{
"declaration": "parens",
"assignment": "parens",
"return": "parens",
"arrow": "parens",
"condition": "ignore",
"logical": "ignore",
"prop": "ignore"
}
]
}
}