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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 06:56:15  来源:igfitidea点击:

What to include in configuration of tslint.json?

typescripttslint

提问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.jsonhttps: //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
    }
}