docs: fix react-hooks/exhaustive-dependencies typo (#5605)

The rule is `exhaustive-deps`, not `exhaustive-dependencies`.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
Eng Zer Jun
2023-02-18 20:33:55 +08:00
committed by GitHub
parent 8e3674608f
commit 63c77695a9
3 changed files with 3 additions and 3 deletions

View File

@@ -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
}, []);
```

View File

@@ -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
}, []);
```

View File

@@ -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
}, []);
```