Skip to content
Snippets Groups Projects
tslint.json 1.78 KiB
Newer Older
Alexander Rose's avatar
Alexander Rose committed
{
    "rules": {
        "array-type": [
            true,
            "array"
        ],
        "arrow-parens": false,
        "no-var-keyword": true,
        "no-construct": true,
Alexander Rose's avatar
Alexander Rose committed
        "ordered-imports": [false],
        "trailing-comma": [false],
David Sehnal's avatar
David Sehnal committed
        "class-name": false,
Alexander Rose's avatar
Alexander Rose committed
        "comment-format": [
            true,
            "check-space"
        ],
        "indent": [
            true,
            "spaces"
        ],
        "ban-types": [
            true,
            ["String", "Use primitive 'string' instead."],
            ["Boolean", "Use primitive 'boolean' instead."],
            ["Number", "Use primitive 'number' instead."]
        ],
Alexander Rose's avatar
Alexander Rose committed
        "no-eval": true,
        "no-internal-module": true,
        "no-trailing-whitespace": true,
        "no-unsafe-finally": true,
        "one-line": [
            true,
            "check-open-brace",
            "check-whitespace"
        ],
        "quotemark": [
            true,
            "single"
        ],
        "semicolon": [ false ],
        "triple-equals": [
            true,
            "allow-null-check"
        ],
        "typedef-whitespace": [
            true,
            {
                "call-signature": "nospace",
                "index-signature": "nospace",
                "parameter": "nospace",
                "property-declaration": "nospace",
                "variable-declaration": "nospace"
            }
        ],
        "variable-name": [
            true,
            "ban-keywords"
        ],
        "whitespace": [
            true,
            "check-branch",
            "check-decl",
            "check-separator",
            "check-type"
        ]
    },
    "jsRules": {
        "triple-equals": [
            true,
            "allow-null-check"
        ]
    },
    "defaultSeverity": "warning"
}