Skip to content
Snippets Groups Projects
tslint.json 2.77 KiB
Newer Older
Hugo SUBTIL's avatar
Hugo SUBTIL committed
{
  "extends": "tslint:recommended",
  "rulesDirectory": ["codelyzer"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  "rules": {
    "align": {
      "options": ["parameters", "statements"]
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    },
    "array-type": false,
    "arrow-return-shorthand": true,
    "curly": [true, "ignore-same-line"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "deprecation": {
      "severity": "warning"
    },
    "eofline": true,
    "import-blacklist": [true, "rxjs/Rx"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "import-spacing": true,
    "indent": {
      "options": ["spaces"]
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    },
    "max-classes-per-file": false,
    "max-line-length": [true, 140],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "member-ordering": [
      true,
      {
        "order": ["static-field", "instance-field", "static-method", "instance-method"]
Hugo SUBTIL's avatar
Hugo SUBTIL committed
      }
    ],
    "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "no-empty": false,
    "no-inferrable-types": [true, "ignore-params"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "no-non-null-assertion": true,
    "no-redundant-jsdoc": true,
    "no-switch-case-fall-through": true,
    "no-var-requires": false,
    "object-literal-key-quotes": [true, "as-needed"],
    "quotemark": [true, "single"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "semicolon": {
      "options": ["always"]
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    },
    "space-before-function-paren": {
      "options": {
        "anonymous": "never",
        "asyncArrow": "always",
        "constructor": "never",
        "method": "never",
        "named": "never"
      }
    },
    "typedef": [true, "call-signature"],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    "typedef-whitespace": {
      "options": [
        {
          "call-signature": "nospace",
          "index-signature": "nospace",
          "parameter": "nospace",
          "property-declaration": "nospace",
          "variable-declaration": "nospace"
        },
        {
          "call-signature": "onespace",
          "index-signature": "onespace",
          "parameter": "onespace",
          "property-declaration": "onespace",
          "variable-declaration": "onespace"
        }
      ]
    },
    "variable-name": {
      "options": ["ban-keywords", "check-format", "allow-pascal-case"]
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    },
    "whitespace": {
      "options": ["check-branch", "check-decl", "check-operator", "check-separator", "check-type", "check-typecast"]
Hugo SUBTIL's avatar
Hugo SUBTIL committed
    },
    "component-class-suffix": true,
    "contextual-lifecycle": true,
    "directive-class-suffix": true,
    "no-conflicting-lifecycle": true,
    "no-host-metadata-property": true,
    "no-input-rename": true,
    "no-inputs-metadata-property": true,
    "no-output-native": true,
    "no-output-on-prefix": true,
    "no-output-rename": true,
    "no-outputs-metadata-property": true,
    "template-banana-in-box": true,
    "template-no-negated-async": true,
    "use-lifecycle-interface": true,
    "use-pipe-transform-interface": true,
    "directive-selector": [true, "attribute", "app", "camelCase"],
Bastien DUMONT's avatar
Bastien DUMONT committed
    "component-selector": [true, "element", "app", "kebab-case"],
    "unnecessary-constructor": true
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  }
}