Browse Source

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>
main
Eng Zer Jun 2 years ago
committed by GitHub
parent
commit
63c77695a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/content/learn/lifecycle-of-reactive-effects.md
  2. 2
      beta/src/content/learn/removing-effect-dependencies.md
  3. 2
      beta/src/content/reference/react/useEffect.md

2
beta/src/content/learn/lifecycle-of-reactive-effects.md

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

2
beta/src/content/learn/removing-effect-dependencies.md

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

2
beta/src/content/reference/react/useEffect.md

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

Loading…
Cancel
Save