Skip to content

Commit

Permalink
chore: extend linting to cover react hooks (freeCodeCamp#36725)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeytonwilliams authored and raisedadead committed Aug 30, 2019
1 parent 335600d commit f50ac6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"root": true,
"extends": ["@freecodecamp/eslint-config", "prettier", "prettier/react"],
"plugins": ["prettier"],
"plugins": ["prettier", "react-hooks"],
"rules": {
"max-len": [
"error",
{ "code": 80, "ignoreUrls": true, "ignoreTemplateLiterals": true }
],
"prettier/prettier": "error"
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^2.0.1",
"faker": "^4.1.0",
"gray-matter": "^4.0.2",
"gulp": "^4.0.2",
Expand Down

0 comments on commit f50ac6e

Please sign in to comment.