3 ms·
Disable comments are most useful when you’re changing the way a codebase is linted: adding new rules, setting up lint on a legacy codebase, etc. The value is i
by fiddlerwoaroof 5y ago
Disable comments are most useful when you’re changing the way a codebase is linted: adding new rules, setting up lint on a legacy codebase, etc.
The value is in making it possible to get to “lint clean” quickly as a first pass, while marking the parts of the code that are tricky to refactor to conform with the style guidelines.
Once the code is lint-clean, you can start reviewing the disable comments and coming up with a more permanent fix.
- misnome 5y agoI get the feeling that a lot of people think building small things starting from scratch is the only way anything is ever built. Are they good? bad? Yes. It depends on your circumstances and priorities. Saying this doesn't make a very satisfactory article though.