-
-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: useExhaustiveDependencies not recommended (#4294)
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
.changeset/the_rule_useexhaustivedependencies_isnt_recommended_anymore.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# The rule `useExhaustiveDependencies` isn't recommended anymore | ||
|
||
The rule `useExhaustiveDependencies` is not recommended anymore. If your codebase uses `react` and relies on that rule, you have to enable it: | ||
|
||
|
||
```jsonc | ||
// biome.json | ||
{ | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"useExhaustiveDependencies": "error" | ||
} | ||
} | ||
} | ||
} | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters