我不知道 tslint.json
应该包含哪个规则。谁能告诉我 tslint.json
的常见或标准用法?
如何写一个tslint.json文件?
最佳答案
how to write a tslint.json file
文档:https://palantir.github.io/tslint
这是一个示例 tslint.json
:https://palantir.github.io/tslint/usage/configuration/
您只会使用您关心的规则:https://palantir.github.io/tslint/rules/
例如一个小样本:
{
"rules": {
"no-unreachable": true
}
}
关于typescript - 在 tslint.json 的配置中包含什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35589191/