Skip to content
Permalink
Browse files

chore: extend linting to cover react hooks (#36725)

  • Loading branch information...
ojeytonwilliams authored and raisedadead committed Aug 30, 2019
1 parent 335600d commit f50ac6e11563f484ccba013ddce30d86736b7671
Showing with 11 additions and 2 deletions.
  1. +4 −2 .eslintrc.json
  2. +6 −0 package-lock.json
  3. +1 −0 package.json
@@ -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": {

Some generated files are not rendered by default. Learn more.

@@ -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",

0 comments on commit f50ac6e

Please sign in to comment.
You can’t perform that action at this time.