Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
city41
4y ago
0 comments
Share
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...
undefined | Better HN
0 comments
default
newest
oldest
DEiE
4y ago
That's configurable in the rule though.
https://eslint.org/docs/rules/no-unused-vars#varsignorepatte...
city41
OP
4y ago
Ah nice, I didn't know that. Thanks.
j
/
k
navigate · click thread line to collapse