1
与my question about the as-syntax有关,我想查找tslint rules以便找出问题所在。唉,我只看到我的tslint
运行的错误信息是这样的:如何知道哪个规则违规导致了tslint中的错误?
ERROR: src/Metronome/JobFetcher.ts[13, 32]: Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
ERROR: src/Metronome/JobConfig.ts[20, 1]: Consecutive blank lines are forbidden
ERROR: src/Metronome/JobFetcher.ts[7, 23]: ' should be "
现在缺少这里是导致该错误的规则。例如,我知道该行' should be "
涉及规则quotemark
在我tsconfig.json
:
"quotemark": [
true,
"double",
"avoid-escape"
],
但我不知道,对于其他规则,因为我依靠tslint:recommended
大头我的配置,对于我以前从未见过的错误,如as-syntax所发生的错误,我只能通过搜索as语法来解决,而不是通过tslint的参考文档来查找。
如何知道我的tslint配置的哪些规则导致了错误消息?