在我的项目中,我使用tslint
with"defaultSeverity": "warning"
选项。有没有办法配置lint-staged
来捕获警告并在它们发生时中止提交?我的lint-staged
配置:
"lint-staged": {
"core/src/main/resources/**/*.tsx": "node core/node_modules/tslint/bin/tslint",
"gitDir": "../"
},
"scripts": {
"test": "",
"precommit": "lint-staged"
}