Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ESLInt Rules of Hooks ruleset #197

Merged
merged 4 commits into from
May 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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