When I execute git commit -m "commit message"
command, lint-staged shows this error:
My configuration in package.json:
"husky": {
"hooks": {
"pre-commit": "npm run validate && lint-staged"
}
},
"lint-staged": {
"*.+(js|ts|tsx)": [
"eslint"
],
"**/*.+(js|json|ts|tsx)": [
"prettier --write"
]
},
It works fine on mac but windows-10 shows this error. Can anyone tell me what's going wrong with windows?
Given the messages that are displayed : I think this hook runs
git stash -k
(stash everything that's not in the index)git add
git stash pop
On your Windows machine, you happen to be in a configuration where :
"fixing" would be :
git stash -k
git stash pop