Closed ashur closed 2 years ago
@ashur I like the no-console for commits, but this might keep things from compiling locally so you couldn't use a console.log for debugging, either. But, that may be more a function of how we're currently using eslint in the bootstrap as opposed to maybe how it should be used.
@jacobfentress Great point! I dropped the rule to warn
instead of error
to prevent breaking existing uses of eslint-config-fk
.
Summary
no-console
rule aswarn
, warning on use ofconsole
in all casesCHANGELOG.md
and a pull request template to the projectAdding
no-console
as a warning could help catch any debugging uses ofconsole
calls before being committed or pushed.Usage
In cases where a console call is desired in non-debugging contexts, the rule can be disabled:
Tasks
Notes
ESLint on
console
use:Links