Ng2-Fun Ng2-Fun - 2 months ago 23
TypeScript Question

What to include in configuration of tslint.json?

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

how to write a tslint.json file

The Docs : https://github.com/palantir/tslint#supported-rules

Here is an example straight from the docs : https://github.com/palantir/tslint/blob/master/docs/sample.tslint.json

You would only use the rules that you care about : https://github.com/palantir/tslint#supported-rules

E.g. a small sample :

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