馃殌 Feature: make no-unused-variables more permissive #1515
Labels
status: in discussion
Not yet ready for implementation or a pull request
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
I would suggest the following changes:
This can help in the common React case of
const [_, setMyVar] = React.useState()
where you want to do array restructuring but don't want to keep the first argument. The other cases apply to(myVar, ...rest) => ...
andfunction(_, stuff)
which is useful when composing functions.Additional Info
No response
The text was updated successfully, but these errors were encountered: