Hacker News new | ask | show | jobs
by GORRILA 1891 days ago
Two common rules I like to enforce are no nested ternaries and no unused variables.
1 comments

tsconfig's noUnusedLocals can help you with the last one.
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...
Ah nice, I didn't know that. Thanks.