Skip to content

Commit c36801f

Browse files
Merge pull request #5 from 60frames/eslintrc
Revise react eslint rules
2 parents efbc728 + 966930d commit c36801f

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

.eslintrc-react

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,19 @@
66
"plugins": [
77
"react"
88
],
9-
// Setting all react rules to warning until we gain a POV.
109
"rules": {
11-
"react/display-name": 1,
12-
"react/jsx-boolean-value": 1,
13-
"react/jsx-no-undef": 1,
14-
"react/jsx-quotes": 1,
15-
"react/jsx-sort-prop-types": 1,
16-
"react/jsx-sort-props": 1,
17-
"react/jsx-uses-react": 1,
18-
"react/jsx-uses-vars": 1,
19-
"react/no-did-mount-set-state": 1,
20-
"react/no-did-update-set-state": 1,
21-
"react/no-multi-comp": 1,
22-
"react/no-unknown-property": 1,
23-
"react/prop-types": 1,
24-
"react/react-in-jsx-scope": 1,
25-
"react/require-extension": 1,
26-
"react/self-closing-comp": 1,
27-
"react/sort-comp": 1,
28-
"react/wrap-multilines": 1
10+
"react/jsx-boolean-value": 2,
11+
"react/jsx-no-undef": 2,
12+
"react/jsx-quotes": [2, "double", "avoid-escape"],
13+
"react/jsx-uses-vars": 2,
14+
"react/no-did-mount-set-state": [2, "allow-in-func"],
15+
"react/no-did-update-set-state": 2,
16+
"react/no-multi-comp": 2,
17+
"react/no-unknown-property": 2,
18+
"react/prop-types": 2,
19+
"react/react-in-jsx-scope": 2,
20+
"react/self-closing-comp": 2,
21+
"react/sort-comp": 2,
22+
"react/wrap-multilines": 2
2923
}
3024
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coding-standards",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "60fram.es coding standards.",
55
"main": "",
66
"scripts": {

0 commit comments

Comments
 (0)