Skip to content

Commit

Permalink
feat: useExhaustiveDependencies not recommended (#4294)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 31, 2024
1 parent daed8cb commit f6fbe0a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
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"
}
}
}
}
```
2 changes: 0 additions & 2 deletions crates/biome_configuration/src/analyzer/linter/rules.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ declare_lint_rule! {
name: "useExhaustiveDependencies",
language: "jsx",
sources: &[RuleSource::EslintReactHooks("exhaustive-deps")],
recommended: true,
recommended: false,
}
}

Expand Down

0 comments on commit f6fbe0a

Please sign in to comment.