Skip to content

Commit

Permalink
Merge pull request #197 from humanmade/add-eslint-plugin-react-hooks
Browse files Browse the repository at this point in the history
Add ESLInt Rules of Hooks ruleset
  • Loading branch information
mikeselander committed May 21, 2020
2 parents b18a95c + 64abe38 commit 45fd67f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Included `WordPress-Docs` by default in PHPCS #177
- Add ESLint rule for JSX boolean values #183
- Add ESLint rule for sorting JSX props #195
- Add ESLInt Rules of Hooks ruleset #197

### Updated:
- Updated WPCS to 2.2.1 #151
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-humanmade/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
'extends': [
'eslint:recommended',
'react-app',
'plugin:react-hooks/recommended',
],
'parserOptions': {
'ecmaVersion': 2018,
Expand Down
6 changes: 4 additions & 2 deletions packages/eslint-config-humanmade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^4.0.2",
"eslint-plugin-sort-destructure-keys": "^1.3.3"
},
"peerDependencies": {
Expand All @@ -26,7 +27,8 @@
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1"
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^4.0.2"
},
"files": [
".eslintrc",
Expand Down

0 comments on commit 45fd67f

Please sign in to comment.