Closed mischah closed 6 years ago
Should a finding result in a warning or an error?
Error. And merry Christmas btw π
ππ I totally forgot that it was Christmas at that moment. I hope you had a nice evening with your family.
Sorry, for the confusion. Itβs already checking for undeclared variables in typeof comparisons thanks to eslint-config-xo
.
Checking the existence of variables when using
typeof
comparisons helps to prevent bugs caused by small typos which are hard to spot otherwise.Example:
Try to spot the typo in one of the
localPath
references.See: ESLint docs of this rule.
Config of this rule should be added here: https://github.com/micromata/Baumeister/blob/master/.eslintrc.json