Skip to content

Commit 2433a41

Browse files
committed
update tslint settings
1 parent 46db34e commit 2433a41

File tree

1 file changed

+77
-3
lines changed

1 file changed

+77
-3
lines changed

tslint.json

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,42 @@
11
{
22
"extends": "tslint:recommended",
33
"rules": {
4+
"align": {
5+
"options": [
6+
"parameters",
7+
"statements"
8+
]
9+
},
410
"prettier": true,
511
"array-type": false,
12+
"arrow-return-shorthand": true,
613
"arrow-parens": false,
714
"deprecation": {
815
"severity": "warning"
916
},
1017
"component-class-suffix": true,
18+
"curly": true,
1119
"contextual-lifecycle": true,
1220
"directive-class-suffix": true,
13-
"directive-selector": [true, "attribute", "app", "camelCase"],
14-
"component-selector": [true, "element", "app", "kebab-case"],
21+
"directive-selector": [
22+
true,
23+
"attribute",
24+
"app",
25+
"camelCase"
26+
],
27+
"eofline": true,
28+
"component-selector": [
29+
true,
30+
"element",
31+
"app",
32+
"kebab-case"
33+
],
34+
"import-spacing": true,
35+
"indent": {
36+
"options": [
37+
"spaces"
38+
]
39+
},
1540
"import-blacklist": [true, "rxjs/Rx"],
1641
"interface-name": false,
1742
"max-classes-per-file": false,
@@ -48,11 +73,60 @@
4873
"no-output-native": true,
4974
"no-output-on-prefix": true,
5075
"no-output-rename": true,
76+
"semicolon": {
77+
"options": [
78+
"always"
79+
]
80+
},
81+
"space-before-function-paren": {
82+
"options": {
83+
"anonymous": "never",
84+
"asyncArrow": "always",
85+
"constructor": "never",
86+
"method": "never",
87+
"named": "never"
88+
}
89+
},
5190
"no-outputs-metadata-property": true,
5291
"template-banana-in-box": true,
5392
"template-no-negated-async": true,
93+
"typedef-whitespace": {
94+
"options": [
95+
{
96+
"call-signature": "nospace",
97+
"index-signature": "nospace",
98+
"parameter": "nospace",
99+
"property-declaration": "nospace",
100+
"variable-declaration": "nospace"
101+
},
102+
{
103+
"call-signature": "onespace",
104+
"index-signature": "onespace",
105+
"parameter": "onespace",
106+
"property-declaration": "onespace",
107+
"variable-declaration": "onespace"
108+
}
109+
]
110+
},
54111
"use-lifecycle-interface": true,
55-
"use-pipe-transform-interface": true
112+
"use-pipe-transform-interface": true,
113+
"variable-name": {
114+
"options": [
115+
"ban-keywords",
116+
"check-format",
117+
"allow-pascal-case"
118+
]
119+
},
120+
"whitespace": {
121+
"options": [
122+
"check-branch",
123+
"check-decl",
124+
"check-operator",
125+
"check-separator",
126+
"check-type",
127+
"check-typecast"
128+
]
129+
}
56130
},
57131
"rulesDirectory": [
58132
"codelyzer",

0 commit comments

Comments
 (0)