Skip to content

Commit 449f21a

Browse files
committed
@angular/cli migration - tslint-version-6
Update tslint to version 6.
1 parent ca9f5bf commit 449f21a

File tree

1 file changed

+65
-2
lines changed

1 file changed

+65
-2
lines changed

tslint.json

+65-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,30 @@
44
"codelyzer"
55
],
66
"rules": {
7+
"align": {
8+
"options": [
9+
"parameters",
10+
"statements"
11+
]
12+
},
713
"array-type": false,
814
"arrow-parens": false,
15+
"arrow-return-shorthand": true,
16+
"curly": true,
917
"deprecation": {
1018
"severity": "warn"
1119
},
20+
"eofline": true,
1221
"import-blacklist": [
1322
true,
1423
"rxjs/Rx"
1524
],
25+
"import-spacing": true,
26+
"indent": {
27+
"options": [
28+
"spaces"
29+
]
30+
},
1631
"interface-name": false,
1732
"max-classes-per-file": false,
1833
"max-line-length": [
@@ -48,7 +63,6 @@
4863
"no-non-null-assertion": true,
4964
"no-redundant-jsdoc": true,
5065
"no-switch-case-fall-through": true,
51-
"no-use-before-declare": true,
5266
"no-var-requires": false,
5367
"object-literal-key-quotes": [
5468
true,
@@ -60,12 +74,44 @@
6074
true,
6175
"single"
6276
],
77+
"semicolon": {
78+
"options": [
79+
"always"
80+
]
81+
},
82+
"space-before-function-paren": {
83+
"options": {
84+
"anonymous": "never",
85+
"asyncArrow": "always",
86+
"constructor": "never",
87+
"method": "never",
88+
"named": "never"
89+
}
90+
},
6391
"trailing-comma": false,
6492
"no-output-on-prefix": true,
6593
"no-inputs-metadata-property": true,
6694
"no-host-metadata-property": true,
6795
"no-input-rename": true,
6896
"no-output-rename": true,
97+
"typedef-whitespace": {
98+
"options": [
99+
{
100+
"call-signature": "nospace",
101+
"index-signature": "nospace",
102+
"parameter": "nospace",
103+
"property-declaration": "nospace",
104+
"variable-declaration": "nospace"
105+
},
106+
{
107+
"call-signature": "onespace",
108+
"index-signature": "onespace",
109+
"parameter": "onespace",
110+
"property-declaration": "onespace",
111+
"variable-declaration": "onespace"
112+
}
113+
]
114+
},
69115
"use-lifecycle-interface": true,
70116
"use-pipe-transform-interface": true,
71117
"one-variable-per-declaration": false,
@@ -84,5 +130,22 @@
84130
"page",
85131
"kebab-case"
86132
]
87-
}
133+
, "variable-name": {
134+
"options": [
135+
"ban-keywords",
136+
"check-format",
137+
"allow-pascal-case"
138+
]
139+
},
140+
"whitespace": {
141+
"options": [
142+
"check-branch",
143+
"check-decl",
144+
"check-operator",
145+
"check-separator",
146+
"check-type",
147+
"check-typecast"
148+
]
149+
}
150+
}
88151
}

0 commit comments

Comments
 (0)