Committing from vs-code Source control returns this error but the command line works fine
husky - pre-commit hook exited with code 1 (error)
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
{
"scripts": {
"lint-staged": "lint-staged",
"postinstall": "husky install"
},
"devDependencies":{
"husky": "^7.0.0",
"lint-staged": "^11.0.0",
}
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx}": "eslint"
},
"husky": {
"hooks": {
"pre-commit": "yarn run lint-staged"
}
}
}
Committing from vs-code Source control returns this error but the command line works fine
vscode version -
1.58.2Command output
pre-commit
package json