5 ms·
There’s an eslint plugin to run only on staged changes: https://news.ycombinator.com/item?id=27643526 https://news.ycombinator.com/item?id=27643526
by jabo 5y ago
There’s an eslint plugin to run only on staged changes: https://news.ycombinator.com/item?id=27643526 https://news.ycombinator.com/item?id=27643526
- foreigner 5y agoThat looks perfect.
- onion2k 5y agoThere's also the 'lint-staged' NPM package if you want to do pretty much anything only on staged files.
- morelisp 5y agoI can't remember if this package specifically was one of the ones we tried (it was 3-4 different packages in the JS ecosystem), but anything that pretends files and not changes are the units of staging will cause problems for advanced git workflows.