v9.1.1
Super saiyan ~~god~~ dog! It's over 9.0.0!
What's new
You can now run package commands directly, no need for npx or equivalents.
It makes writing hooks more intuitive and is also slightly faster ๐บโก๏ธ
# .husky/pre-commit
- npx jest
+ jest # ~0.2s faster
A new recipe has been added to the docs. Lint staged files without external dependencies (inspired by Prettier docs). Feel free to modify it.
# .husky/pre-commit
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again
For more advanced use cases, see lint-staged.