What to include in configuration of tslint.json?

Ng2-Fun picture Ng2-Fun · Feb 23, 2016 · Viewed 30.6k times · Source

I don't know which rule should be included in tslint.json. Can anyone show me the common or standard use of tslint.json?

How to write a tslint.json file?

Answer

basarat picture basarat · Feb 23, 2016

how to write a tslint.json file

The Docs: https://palantir.github.io/tslint

Here is an example 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/

E.g. a small sample:

{
    "rules": {
        "no-unreachable": true
    }
}