3 ms·
I generally don't like putting linters on commit hooks. Commits are easy to change and I think people would be better off making more of them. If your lint ends
by neallindsay 4y ago
I generally don't like putting linters on commit hooks. Commits are easy to change and I think people would be better off making more of them. If your lint ends up taking a long time it will discourage frequent commits.
Also, unless you jump through a lot of hoops, linters generally run against what's on-disk instead of what's actually going into the commit. So checks that run at commit time discourage partial adds.