plantain-00/type-coverage

Check coverage of staged/added files

Closed this issue · 2 comments

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

2.23.0 supports checking specific files by adding -- file1.ts file2.ts now

Works fine, thank you!