Release version 1.13.7
[sdc.git] / catalog-ui / tslint.json
1 {
2   "extends": [
3     "tslint:recommended"
4   ],
5   "rules": {
6     "cognitive-complexity": false,
7     "trailing-comma": true,
8     "callable-types": true,
9     "class-name": true,
10     "comment-format": [
11       true,
12       "check-space"
13     ],
14     "curly": true,
15     "eofline": true,
16     "forin": true,
17     "import-spacing": true,
18     "indent": [
19       true,
20       "spaces"
21     ],
22     //"interface-over-type-literal": true,
23     //"label-position": true,
24     "interface-name": [true, "never-prefix"],
25     "max-line-length": [
26       true,
27       200
28     ],
29     "member-access": false,
30     "member-ordering": [
31       true,
32       {
33         "order": "fields-first"
34       }
35     ],
36     "no-arg": true,
37     "no-bitwise": true,
38     "no-console": [
39       true,
40       "debug",
41       "info",
42       "time",
43       "timeEnd",
44       "trace"
45     ],
46     "no-construct": true,
47     "no-debugger": true,
48     "no-empty": true,
49     "no-empty-interface": true,
50     "no-eval": true,
51     "no-inferrable-types": false,
52     "no-shadowed-variable": true,
53     "no-string-literal": true,
54     "no-string-throw": true,
55     "no-switch-case-fall-through": true,
56     "no-trailing-whitespace": true,
57     "no-unused-expression": [
58       true,
59       "allow-fast-null-checks"
60     ],
61     "no-var-keyword": true,
62     "object-literal-sort-keys": false,
63     "one-line": [
64       true,
65       "check-open-brace",
66       "check-catch",
67       "check-else",
68       "check-whitespace"
69     ],
70     "prefer-const": true,
71     "quotemark": [
72       true,
73       "single"
74     ],
75     "semicolon": [
76       true,
77       "always"
78     ],
79     "triple-equals": [
80       true,
81       "allow-null-check",
82       "allow-undefined-check"
83     ],
84     "typedef-whitespace": [
85       true,
86       {
87         "call-signature": "nospace",
88         "index-signature": "nospace",
89         "parameter": "nospace",
90         "property-declaration": "nospace",
91         "variable-declaration": "nospace"
92       }
93     ],
94     "variable-name": [
95       true,
96       "check-format",
97       "ban-keywords"
98     ],
99     "whitespace": [
100       true,
101       "check-branch",
102       "check-decl",
103       "check-operator",
104       "check-module",
105       "check-separator",
106       "check-type",
107       "check-preblock"
108     ],
109     "ban-types": [
110       true,
111       [
112         "Object",
113         "Avoid using the `Object` type. Did you mean `object`?"
114       ],
115       [
116         "Boolean",
117         "Avoid using the `Boolean` type. Did you mean `boolean`?"
118       ],
119       [
120         "Number",
121         "Avoid using the `Number` type. Did you mean `number`?"
122       ],
123       [
124         "String",
125         "Avoid using the `String` type. Did you mean `string`?"
126       ],
127       [
128         "Symbol",
129         "Avoid using the `Symbol` type. Did you mean `symbol`?"
130       ]
131     ]
132   }
133 }