> git commit -m "commit message"
npm ERR! Missing script: "test"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2022-01-25T15_32_42_915Z-debug-0.log
husky - pre-commit hook exited with code 1 (error)
The .husky/pre-commit script includes an npm test which looks for that script inside package.json. The test script doesn't exist and I can only commit with the --no-verify flag to skip, which consequently skips the npx lint-staged step.