blob: 1aebca880c4312a5bffbd9c963659875ad71c510 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001{
ys969316a9fce2020-01-19 13:50:02 +02002 "extends": [
3 "tslint:recommended"
Michael Landoed64b5e2017-06-09 03:19:04 +03004 ],
5 "rules": {
ys969316a9fce2020-01-19 13:50:02 +02006 "cognitive-complexity": false,
7 "trailing-comma": true,
Michael Landoed64b5e2017-06-09 03:19:04 +03008 "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,
Michael Landoed64b5e2017-06-09 03:19:04 +030017 "import-spacing": true,
18 "indent": [
19 true,
20 "spaces"
21 ],
ys969316a9fce2020-01-19 13:50:02 +020022 //"interface-over-type-literal": true,
23 //"label-position": true,
24 "interface-name": [true, "never-prefix"],
Michael Landoed64b5e2017-06-09 03:19:04 +030025 "max-line-length": [
26 true,
ys969316a9fce2020-01-19 13:50:02 +020027 200
Michael Landoed64b5e2017-06-09 03:19:04 +030028 ],
29 "member-access": false,
30 "member-ordering": [
31 true,
ys969316a9fce2020-01-19 13:50:02 +020032 {
33 "order": "fields-first"
34 }
Michael Landoed64b5e2017-06-09 03:19:04 +030035 ],
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,
ys969316a9fce2020-01-19 13:50:02 +020048 "no-empty": true,
Michael Landoed64b5e2017-06-09 03:19:04 +030049 "no-empty-interface": true,
50 "no-eval": true,
ys969316a9fce2020-01-19 13:50:02 +020051 "no-inferrable-types": false,
Michael Landoed64b5e2017-06-09 03:19:04 +030052 "no-shadowed-variable": true,
ys969316a9fce2020-01-19 13:50:02 +020053 "no-string-literal": true,
Michael Landoed64b5e2017-06-09 03:19:04 +030054 "no-string-throw": true,
55 "no-switch-case-fall-through": true,
56 "no-trailing-whitespace": true,
ys969316a9fce2020-01-19 13:50:02 +020057 "no-unused-expression": [
58 true,
59 "allow-fast-null-checks"
60 ],
Michael Landoed64b5e2017-06-09 03:19:04 +030061 "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 ],
Michael Landoed64b5e2017-06-09 03:19:04 +030075 "semicolon": [
ys969316a9fce2020-01-19 13:50:02 +020076 true,
Michael Landoed64b5e2017-06-09 03:19:04 +030077 "always"
78 ],
79 "triple-equals": [
80 true,
ys969316a9fce2020-01-19 13:50:02 +020081 "allow-null-check",
82 "allow-undefined-check"
Michael Landoed64b5e2017-06-09 03:19:04 +030083 ],
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 ],
ys969316a9fce2020-01-19 13:50:02 +020094 "variable-name": [
95 true,
96 "check-format",
97 "ban-keywords"
98 ],
Michael Landoed64b5e2017-06-09 03:19:04 +030099 "whitespace": [
100 true,
101 "check-branch",
102 "check-decl",
103 "check-operator",
ys969316a9fce2020-01-19 13:50:02 +0200104 "check-module",
Michael Landoed64b5e2017-06-09 03:19:04 +0300105 "check-separator",
ys969316a9fce2020-01-19 13:50:02 +0200106 "check-type",
107 "check-preblock"
Michael Landoed64b5e2017-06-09 03:19:04 +0300108 ],
ys969316a9fce2020-01-19 13:50:02 +0200109 "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 ]
Michael Landoed64b5e2017-06-09 03:19:04 +0300132 }
ys969316a9fce2020-01-19 13:50:02 +0200133}