Open samhh opened 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.
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
.
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?