tslint.json 2.91 KB
Newer Older
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
1
2
3
4
5
6
{
  "extends": "tslint:recommended",
  "rulesDirectory": [
    "codelyzer"
  ],
  "rules": {
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
7
8
9
10
11
12
    "align": {
      "options": [
        "parameters",
        "statements"
      ]
    },
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
13
14
    "array-type": false,
    "arrow-parens": false,
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
15
16
    "arrow-return-shorthand": true,
    "curly": true,
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
17
18
19
    "deprecation": {
      "severity": "warn"
    },
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
20
    "eofline": true,
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
21
22
23
24
    "import-blacklist": [
      true,
      "rxjs/Rx"
    ],
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
25
26
27
28
29
30
    "import-spacing": true,
    "indent": {
      "options": [
        "spaces"
      ]
    },
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
    "interface-name": false,
    "max-classes-per-file": false,
    "max-line-length": [
      true,
      140
    ],
    "member-access": false,
    "member-ordering": [
      true,
      {
        "order": [
          "static-field",
          "instance-field",
          "static-method",
          "instance-method"
        ]
      }
    ],
    "no-consecutive-blank-lines": false,
    "no-console": [
      true,
      "debug",
      "info",
      "time",
      "timeEnd",
      "trace"
    ],
    "no-empty": false,
    "no-inferrable-types": [
      true,
      "ignore-params"
    ],
    "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"
    ],
    "object-literal-sort-keys": false,
    "ordered-imports": false,
    "quotemark": [
      true,
      "single"
    ],
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
77
78
79
80
81
82
83
84
85
86
87
88
89
90
    "semicolon": {
      "options": [
        "always"
      ]
    },
    "space-before-function-paren": {
      "options": {
        "anonymous": "never",
        "asyncArrow": "always",
        "constructor": "never",
        "method": "never",
        "named": "never"
      }
    },
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
91
92
93
94
95
96
97
    "trailing-comma": false,
    "no-output-on-prefix": true,
    "no-inputs-metadata-property": true,
    "no-outputs-metadata-property": true,
    "no-host-metadata-property": true,
    "no-input-rename": true,
    "no-output-rename": true,
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
    "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"
        }
      ]
    },
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
116
117
118
119
    "use-lifecycle-interface": true,
    "use-pipe-transform-interface": true,
    "component-class-suffix": true,
    "directive-class-suffix": true
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
  ,    "variable-name": {
      "options": [
        "ban-keywords",
        "check-format",
        "allow-pascal-case"
      ]
    },
    "whitespace": {
      "options": [
        "check-branch",
        "check-decl",
        "check-operator",
        "check-separator",
        "check-type",
        "check-typecast"
      ]
    }
}
Raphael Ochsenbein's avatar
Raphael Ochsenbein committed
138
}