4

在我的项目中,我使用tslintwith"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"
}
4

0 回答 0