-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc-react
More file actions
28 lines (27 loc) · 853 Bytes
/
.eslintrc-react
File metadata and controls
28 lines (27 loc) · 853 Bytes
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
{
"extends": "./.eslintrc-browser",
"ecmaFeatures": {
"jsx": true
},
"plugins": [
"react"
],
"rules": {
"react/jsx-boolean-value": 2,
"react/jsx-no-undef": 2,
"react/jsx-quotes": [2, "double", "avoid-escape"],
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/wrap-multilines": 2,
// no-extra-parens and react/wrap-multilines cannot coexist
// https://github.com/yannickcr/eslint-plugin-react/issues/86
"no-extra-parens": [2, "functions"]
}
}