-
-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
Describe the bug
I have a pre-commit hook setup via lint-staged (15.5.2) and husky (9.1.7)
To Reproduce
- Set up lint-staged & husky
package.json
"scripts": {
"prepare": "husky"
}, "lint-staged": {
"*.{js,vue}": "eslint --cache --max-warnings 0"
}.husky/pre-commit
lint-stagedAnd then run npm install. It should prepare everything. I think. If not, you may need to check both packages' instructions again. I struggle every update.
- Prepare an easy to check ESLint rule (for example, no-console)
- Prepare a commit violating that rule (for example, add a console.log statement to a file)
- Test that your hook is preventing commit in the CLI
- Try committing with Gitnuro. The hook is not executed; the commit goes through without a hitch
Expected behavior
Gitnuro should execute the hook & prevent my commit if it returns an error
Desktop (please complete the following information):
- OS: Windows 11 24H2
- Version 1.4.3