© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Pankaj Patel
Blog, Tech, Photography etc.
Great article Jarrod, the pre-commit script looks really good.
Though I would also suggest to checkout lint-staged package.
Husky+LintStaged will allow you to configure commit hooks right from package.json
Keep up the good writing.
Jarrod Watts
Developer Relations Engineer @ Polygon Labs
Thanks for the tip Pankaj! Yeah a little problem with the set up i described is that it checks what you've changed not what you are committing. Great tip!