imperodesign / generator-impero

Impero's website skeleton generator, courtesy of Yeoman
Other
1 stars 1 forks source link

Linting - during watch or only on command? #46

Open samhh opened 8 years ago

samhh commented 8 years ago

Some good linting rules can get in your way when you're halfway through developing something. Perhaps ESLint should be set instead as an npm task and detached from the watch task?

MrSlide commented 8 years ago

Can you give an example of linting rules that can get in the way? I prefer to run a linter on my IDE to give me warnings and highlights in real time. Recently I've started using a git pre-commit hook to lint, so it's still automated but doesn't slow down the watch tasks and I think it's quite a good solution.

samhh commented 8 years ago

One problem I find myself having a lot is that I'll be testing a particular chunk of code, and to do so I'll want to block off everything after it. Instead of commenting out lots of code I'll often instead put a return and go from there. This causes a linting error as unreachable code.