Y
Hacker News
new
|
ask
|
show
|
jobs
by
city41
1891 days ago
And it allows you to opt out when needed by starting the variable with an underscore, which is much nicer than eslint-disable-next-line...
1 comments
DEiE
1891 days ago
That's configurable in the rule though.
https://eslint.org/docs/rules/no-unused-vars#varsignorepatte...
link
city41
1891 days ago
Ah nice, I didn't know that. Thanks.
link
https://eslint.org/docs/rules/no-unused-vars#varsignorepatte...