Add ESLint plugin to check React hooks usage
Usage of "hooks" has to follow certain rules [1]. This adds the official ESLint plugin to check for this. All the checks are marked as errors following the "no warnings, only errors" principle. ESLint suppressions can be used to ignore any cases where we decide not to follow a "rule". [1] https://reactjs.org/docs/hooks-rules.html
Showing
... | @@ -54,6 +54,7 @@ | ... | @@ -54,6 +54,7 @@ |
"eslint-config-hypothesis": "^1.0.0", | "eslint-config-hypothesis": "^1.0.0", | ||
"eslint-plugin-mocha": "^5.2.1", | "eslint-plugin-mocha": "^5.2.1", | ||
"eslint-plugin-react": "^7.12.4", | "eslint-plugin-react": "^7.12.4", | ||
"eslint-plugin-react-hooks": "^1.6.0", | |||
"exorcist": "^1.0.1", | "exorcist": "^1.0.1", | ||
"express": "^4.14.1", | "express": "^4.14.1", | ||
"extend": "^3.0.2", | "extend": "^3.0.2", | ||
... | ... |
Please register or sign in to comment