Skip to content

Commit 174dcf5

Browse files
committed
add tslint
1 parent dcfed04 commit 174dcf5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

tslint.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"rules": {
3+
"class-name": true,
4+
"comment-format": [true, "check-space"],
5+
"indent": [true, "tabs"],
6+
"no-duplicate-variable": true,
7+
"no-eval": true,
8+
"member-ordering": true,
9+
10+
"member-access": true,
11+
"prefer-const": true,
12+
"no-internal-module": true,
13+
"no-trailing-whitespace": true,
14+
"no-var-keyword": true,
15+
"one-line": [true, "check-open-brace", "check-whitespace"],
16+
"quotemark": [false, "single"],
17+
"semicolon": [true, "always"],
18+
"triple-equals": [true, "allow-null-check"],
19+
"typedef-whitespace": [
20+
true,
21+
{
22+
"call-signature": "nospace",
23+
"index-signature": "nospace",
24+
"parameter": "nospace",
25+
"property-declaration": "nospace",
26+
"variable-declaration": "nospace"
27+
}
28+
],
29+
"variable-name": [true, "ban-keywords"],
30+
"whitespace": [
31+
true,
32+
"check-branch",
33+
"check-decl",
34+
"check-operator",
35+
"check-separator",
36+
"check-type"
37+
]
38+
}
39+
}

0 commit comments

Comments
 (0)