tslint.json
author Frank Bessou <frank.bessou@logilab.fr>
Mon, 18 Dec 2017 16:10:33 +0100
changeset 255 ba56a53b0abd
parent 252 6742e5af0acb
permissions -rw-r--r--
Stringify JSON value before rendering in AttributeValue When a JSON value can't be rendered using React components, its raw value is used. That makes the application crash when the value is an object. In this changeset, we ensure that the displayed value is always a string.

{
    "defaultSeverity": "error",
    "extends": [
        "tslint:recommended"
    ],
    "jsRules": {},
    "rules": {
        "object-literal-key-quotes": [true, "as-needed"],
        "curly": true,
        "interface-name": [false, "never-prefix"],
        "max-classes-per-file": false,
        "no-console": [true, "log"],
        "no-consecutive-blank-lines": true,
        "no-unused-variable": true,
        "no-use-before-declare": true,
        "no-var-keyword": true,
        "no-var-requires": true,
        "one-line": [
            true,
            "check-catch",
            "check-finally",
            "check-else",
            "check-open-brace",
            "check-whitespace"
        ],
        "quotemark": [true, "single", "avoid-escape"],
        "radix": true,
        "semicolon": [true, "always","ignore-bound-class-methods"],
        "no-string-literal": false,
        "whitespace": [
            true,
            "check-branch",
            "check-decl",
            "check-operator",
            "check-module",
            "check-separator",
            "check-type",
            "check-typecast",
            "check-preblock"
        ]
    },
    "rulesDirectory": []
}