Check coverage of staged/added files
Closed this issue · 2 comments
StaRenn commented
It would be awesome if you could check coverage of added/staged files for precommit hook. Coverage of added file less than 95%? No commit for you
I think it needs feature that will allow you to pass paths in cli like eslint or prettier "eslint **/*.(ts|tsx)" so you can run it in lint-staged
plantain-00 commented
2.23.0
supports checking specific files by adding -- file1.ts file2.ts
now
StaRenn commented
Works fine, thank you!