Skip to content

Commit 1ca21ab

Browse files
DanielFGrayljharb
authored andcommitted
[eslint config] clarify hooks section in readme
It took me too long to realize that `"extends": "airbnb/hooks"` won't cut it, and that you need to include both `"extends": ["airbnb", "airbnb/hooks"]`. I think the docs should be explicit about this.
1 parent 295d1e6 commit 1ca21ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Our default export contains all of our ESLint rules, including ECMAScript 6+ and
5858

5959
### eslint-config/airbnb/hooks
6060

61-
This entry point enables the linting rules for React hooks (requires v16.8+). To use, add `"extends": "airbnb/hooks"` to your `.eslintrc`
61+
This entry point enables the linting rules for React hooks (requires v16.8+). To use, add `"extends": ["airbnb", "airbnb/hooks"]` to your `.eslintrc`
6262

6363
### eslint-config-airbnb/whitespace
6464

0 commit comments

Comments
 (0)