tslint.json 2.88 KB
Newer Older
pabloFuente's avatar
pabloFuente committed
1 2 3 4 5
{
  "rulesDirectory": [
    "node_modules/codelyzer"
  ],
  "rules": {
6
    "arrow-return-shorthand": true,
pabloFuente's avatar
pabloFuente committed
7 8 9 10 11 12 13 14 15
    "callable-types": true,
    "class-name": true,
    "comment-format": [
      true,
      "check-space"
    ],
    "curly": true,
    "eofline": true,
    "forin": true,
16
    "import-blacklist": [
17
      true
18
    ],
pabloFuente's avatar
pabloFuente committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32
    "import-spacing": true,
    "indent": [
      true,
      "spaces"
    ],
    "interface-over-type-literal": true,
    "label-position": true,
    "max-line-length": [
      true,
      140
    ],
    "member-access": false,
    "member-ordering": [
      true,
33 34 35 36 37 38 39 40
      {
        "order": [
          "static-field",
          "instance-field",
          "static-method",
          "instance-method"
        ]
      }
pabloFuente's avatar
pabloFuente committed
41 42 43 44 45 46 47 48 49 50 51 52 53
    ],
    "no-arg": true,
    "no-bitwise": true,
    "no-console": [
      true,
      "debug",
      "info",
      "time",
      "timeEnd",
      "trace"
    ],
    "no-construct": true,
    "no-debugger": true,
54
    "no-duplicate-super": true,
pabloFuente's avatar
pabloFuente committed
55 56 57
    "no-empty": false,
    "no-empty-interface": true,
    "no-eval": true,
58 59 60 61 62 63
    "no-inferrable-types": [
      true,
      "ignore-params"
    ],
    "no-misused-new": true,
    "no-non-null-assertion": true,
pabloFuente's avatar
pabloFuente committed
64 65 66 67 68
    "no-shadowed-variable": true,
    "no-string-literal": false,
    "no-string-throw": true,
    "no-switch-case-fall-through": true,
    "no-trailing-whitespace": true,
69
    "no-unnecessary-initializer": true,
pabloFuente's avatar
pabloFuente committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
    "no-unused-expression": true,
    "no-use-before-declare": true,
    "no-var-keyword": true,
    "object-literal-sort-keys": false,
    "one-line": [
      true,
      "check-open-brace",
      "check-catch",
      "check-else",
      "check-whitespace"
    ],
    "prefer-const": true,
    "quotemark": [
      true,
      "single"
    ],
    "radix": true,
    "semicolon": [
88
      true,
pabloFuente's avatar
pabloFuente committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
      "always"
    ],
    "triple-equals": [
      true,
      "allow-null-check"
    ],
    "typedef-whitespace": [
      true,
      {
        "call-signature": "nospace",
        "index-signature": "nospace",
        "parameter": "nospace",
        "property-declaration": "nospace",
        "variable-declaration": "nospace"
      }
    ],
    "typeof-compare": true,
    "unified-signatures": true,
    "variable-name": false,
    "whitespace": [
      true,
      "check-branch",
      "check-decl",
      "check-operator",
      "check-separator",
      "check-type"
    ],
116 117 118 119 120 121 122 123 124 125 126 127
    "directive-selector": [
      true,
      "attribute",
      "app",
      "camelCase"
    ],
    "component-selector": [
      true,
      "element",
      "app",
      "kebab-case"
    ],
pabloFuente's avatar
pabloFuente committed
128 129 130 131 132 133 134 135 136 137 138 139
    "use-input-property-decorator": true,
    "use-output-property-decorator": true,
    "use-host-property-decorator": true,
    "no-input-rename": true,
    "no-output-rename": true,
    "use-life-cycle-interface": true,
    "use-pipe-transform-interface": true,
    "component-class-suffix": true,
    "directive-class-suffix": true,
    "invoke-injectable": true
  }
}