Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 65b7003

Browse files
committed
fine-tune tslint
1 parent 35dfeea commit 65b7003

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

.editorconfig

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,11 @@ insert_final_newline=false
55
indent_style=space
66
indent_size=4
77

8-
[{*.json}]
9-
indent_style=space
8+
[*.json]
109
indent_size=2
1110

1211
[*.js.map]
13-
indent_style=space
1412
indent_size=2
1513

1614
[{*.yml,*.yaml}]
17-
indent_style=space
1815
indent_size=2
19-
20-
[tslint.json]
21-
indent_style=space
22-
indent_size=2
23-

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"url": "git+ssh://[email protected]/taimos/ask-sdk-addon.git"
2828
},
2929
"peerDependencies": {
30-
"ask-sdk-core": "^2.0.7"
30+
"ask-sdk-core": "^2.3.0"
3131
},
3232
"devDependencies": {
3333
"@types/chai": "^4.1.2",

tslint.json

+21-9
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,26 @@
2121
"ban-comma-operator": true,
2222
"ban-types": [
2323
true,
24-
["Object", "Use {} instead."],
25-
["String", "Use string instead."]
24+
[
25+
"Object",
26+
"Avoid using the `Object` type. Did you mean `object`?"
27+
],
28+
[
29+
"Function",
30+
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`, or use `ts.AnyFunction`."
31+
],
32+
[
33+
"Boolean",
34+
"Avoid using the `Boolean` type. Did you mean `boolean`?"
35+
],
36+
[
37+
"Number",
38+
"Avoid using the `Number` type. Did you mean `number`?"
39+
],
40+
[
41+
"String",
42+
"Avoid using the `String` type. Did you mean `string`?"
43+
]
2644
],
2745
"binary-expression-operand-order": true,
2846
"class-name": true,
@@ -41,10 +59,6 @@
4159
"interface-over-type-literal": false,
4260
"jsdoc-format": true,
4361
"label-position": true,
44-
"max-classes-per-file": [
45-
true,
46-
5
47-
],
4862
"max-line-length": [
4963
true,
5064
250
@@ -94,7 +108,6 @@
94108
"no-switch-case-fall-through": true,
95109
"no-trailing-whitespace": true,
96110
"no-unsafe-finally": true,
97-
"no-unused-expression": true,
98111
"no-var-keyword": true,
99112
"no-var-requires": true,
100113
"object-literal-key-quotes": [
@@ -195,8 +208,7 @@
195208
"check-decl",
196209
"check-operator",
197210
"check-separator",
198-
"check-type",
199-
"check-typecast"
211+
"check-type"
200212
]
201213
}
202214
}

0 commit comments

Comments
 (0)