Skip to content
Snippets Groups Projects
tslint.json 2.77 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    {
      "extends": "tslint:recommended",
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
      "rulesDirectory": ["codelyzer"],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
      "rules": {
        "align": {
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
          "options": ["parameters", "statements"]
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        },
        "array-type": false,
        "arrow-return-shorthand": true,
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "curly": [true, "ignore-same-line"],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "deprecation": {
          "severity": "warning"
        },
        "eofline": true,
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "import-blacklist": [true, "rxjs/Rx"],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "import-spacing": true,
        "indent": {
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
          "options": ["spaces"]
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        },
        "max-classes-per-file": false,
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "max-line-length": [true, 140],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "member-ordering": [
          true,
          {
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
            "order": ["static-field", "instance-field", "static-method", "instance-method"]
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
          }
        ],
    
    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,
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "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,
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "object-literal-key-quotes": [true, "as-needed"],
        "quotemark": [true, "single"],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "semicolon": {
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
          "options": ["always"]
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        },
        "space-before-function-paren": {
          "options": {
            "anonymous": "never",
            "asyncArrow": "always",
            "constructor": "never",
            "method": "never",
            "named": "never"
          }
        },
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "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": {
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
          "options": ["ban-keywords", "check-format", "allow-pascal-case"]
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        },
        "whitespace": {
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
          "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,
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        "directive-selector": [true, "attribute", "app", "camelCase"],
        "component-selector": [true, "element", "app", "kebab-case"],
        "unnecessary-constructor": true
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
      }
    }