This repository was archived by the owner on Nov 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
92 lines (92 loc) · 2 KB
/
.eslintrc
File metadata and controls
92 lines (92 loc) · 2 KB
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
{
"extends": "airbnb",
"env": {
"browser": true
},
"parser": "babel-eslint",
"rules": {
"import/no-extraneous-dependencies": 0,
"react/boolean-prop-naming": "error",
"react/display-name": [
"error",
{
"ignoreTranspilerName": true
}
],
"react/forbid-dom-props": 0,
"react/forbid-prop-types": 0,
"react/no-danger": "error",
"react/no-did-mount-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-this-in-sfc": "error",
"react/sort-prop-types": [
"error",
{
"ignoreCase": true,
"callbacksLast": true,
"requiredFirst": true,
"sortShapeProp": true
}
],
"react/jsx-curly-spacing": [
"error",
{
"when": "always",
"spacing": {
"objectLiterals": "never"
}
}
],
"react/jsx-first-prop-new-line": [
"error",
"multiline"
],
"react/jsx-handler-names": "error",
"react/jsx-key": "error",
"react/jsx-max-props-per-line": [
"error",
{
"maximum": 1,
"when": "always"
}
],
"react/jsx-no-bind": [
"error",
{
"ignoreRefs": false,
"allowArrowFunctions": false,
"allowFunctions": false,
"allowBind": false
}
],
"react/jsx-curly-brace-presence": 0,
"react/jsx-sort-default-props": [
"error",
{
"ignoreCase": true
}
],
"react/jsx-sort-props": 0,
"react/jsx-tag-spacing": [
"error",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
],
"react/jsx-wrap-multilines": [
"error",
{
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "ignore",
"logical": "ignore",
"prop": "parens-new-line"
}
]
}
}