Skip to content

Commit 96a052a

Browse files
Add eslint and eslint-plugin-react as peer deps and add all react lint rules as warnings
1 parent f0a1ee2 commit 96a052a

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.eslintrc-react

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,26 @@
55
},
66
"plugins": [
77
"react"
8-
]
8+
],
9+
// Setting all react rules to warning until we gain a POV.
10+
"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
29+
}
930
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
npm-debug.log
3+
node_modules

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@
3333
"bugs": {
3434
"url": "https://github.com/60frames/coding-standards/issues"
3535
},
36-
"homepage": "https://github.com/60frames/coding-standards"
36+
"homepage": "https://github.com/60frames/coding-standards",
37+
"peerDependencies": {
38+
"eslint": null,
39+
"eslint-plugin-react": null
40+
}
3741
}

0 commit comments

Comments
 (0)