> .husky/pre-commit: line 4: lint-staged: command not found
![[解決] husky pre-commit: line 4: lint-staged: command not found](https://kenjimorita.jp/wp-content/uploads/2023/04/スクリーンショット-2023-04-23-7.33.13-1024x319.png)
[解決] husky pre-commit: line 4: lint-staged: command not found
.husky/precommit`
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run pre-commit
// package.json
{
"scripts": {
"pre-commit": "lint-staged"
},
"lint-staged": {
... your setting here
]
},
}