typescript tslint.json 的配置中要包含什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35589191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What to include in configuration of tslint.json?
提问by Ng2-Fun
I don't know which rule should be included in tslint.json
. Can anyone show me the common or standard use of tslint.json
?
我不知道应该将哪个规则包含在tslint.json
. 谁能告诉我 的常见或标准用法tslint.json
?
How to write a tslint.json file?
如何编写 tslint.json 文件?
采纳答案by basarat
how to write a tslint.json file
如何编写 tslint.json 文件
The Docs: https://palantir.github.io/tslint
文档:https: //palantir.github.io/tslint
Here is an example tslint.json
: https://palantir.github.io/tslint/usage/configuration/
这是一个例子tslint.json
:https: //palantir.github.io/tslint/usage/configuration/
You would only use the rules that you care about: https://palantir.github.io/tslint/rules/
你只会使用你关心的规则:https: //palantir.github.io/tslint/rules/
E.g. a small sample:
例如一个小样本:
{
"rules": {
"no-unreachable": true
}
}