Replies: 2 comments 1 reply
-
Hm, I quite like this suggestion! It’s definitely a bummer when you have to disable all validation for a hook just because a single dependency needs an exception. There is also a suggestion to split |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is now implemented and available in 1.8: https://biomejs.dev/linter/rules/use-exhaustive-dependencies/#ignoring-a-specific-dependency |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, you can only disable the rule for the whole next line.
Often there is a valid case for
// biome-ignore useExhaustiveDependencies
it is due to some non-inferrable guarantees.It would be nice if you can scope the ignore to a specific instance. This way, if the closure changes and would introduce a new missing dependency, the dev would get notified.
E.g. something like
// biome-ignore-instance lint/correctness/useExhaustiveDependencies: <VAR> <explanation>
Beta Was this translation helpful? Give feedback.
All reactions