Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
docs: fix react-hooks/exhaustive-dependencies typo (#5605)
Browse files Browse the repository at this point in the history
The rule is `exhaustive-deps`, not `exhaustive-dependencies`.

Signed-off-by: Eng Zer Jun <[email protected]>
  • Loading branch information
Juneezee authored Feb 18, 2023
1 parent 8e36746 commit 63c7769
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beta/src/content/learn/lifecycle-of-reactive-effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ If you have an existing codebase, you might have some Effects that suppress the
useEffect(() => {
// ...
// 🔴 Avoid suppressing the linter like this:
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
// eslint-ignore-next-line react-hooks/exhaustive-deps
}, []);
```
Expand Down
2 changes: 1 addition & 1 deletion beta/src/content/learn/removing-effect-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ If you have an existing codebase, you might have some Effects that suppress the
useEffect(() => {
// ...
// 🔴 Avoid suppressing the linter like this:
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
// eslint-ignore-next-line react-hooks/exhaustive-deps
}, []);
```
Expand Down
2 changes: 1 addition & 1 deletion beta/src/content/reference/react/useEffect.md
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ If you have an existing codebase, you might have some Effects that suppress the
useEffect(() => {
// ...
// 🔴 Avoid suppressing the linter like this:
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
// eslint-ignore-next-line react-hooks/exhaustive-deps
}, []);
```
Expand Down

0 comments on commit 63c7769

Please sign in to comment.