uber-archive / lint-trap

JavaScript linter module for Uber projects
26 stars 2 forks source link

dev-mode or watch-mode #71

Open andrewdeandrade opened 10 years ago

andrewdeandrade commented 10 years ago

It would be useful to have a dev-mode or watch mode where errors downgraded to warnings so your test suite runs when practicing TDD.....

When this feature is available, the no-console rule should be upgraded back up to an error.

This issue, https://github.com/uber/lint-trap/issues/64 , is related because both might be implementable the same way: via an only flag which can either be warning or error:

--only=error or --only=warning

Question: Is process.env.NODE_ENV an appropriate way to set everything to warning?