6 ms·Two common rules I like to enforce are no nested ternaries and no unused variables.by GORRILA 5y agoTwo common rules I like to enforce are no nested ternaries and no unused variables.maga 5y agotsconfig's noUnusedLocals can help you with the last one.city41 5y agoAnd it allows you to opt out when needed by starting the variable with an underscore, which is much nicer than eslint-disable-next-line...DEiE 5y agoThat's configurable in the rule though. https://eslint.org/docs/rules/no-unused-vars#varsignorepattern https://eslint.org/docs/rules/no-unused-vars#varsignorepatte...city41 5y agoAh nice, I didn't know that. Thanks.