当我执行git commit -m "commit message"
命令时,lint-staged 显示此错误:
我在 package.json 中的配置:
"husky": {
"hooks": {
"pre-commit": "npm run validate && lint-staged"
}
},
"lint-staged": {
"*.+(js|ts|tsx)": [
"eslint"
],
"**/*.+(js|json|ts|tsx)": [
"prettier --write"
]
},
它在mac上运行良好,但windows-10显示此错误。谁能告诉我windows出了什么问题?