Skip to content

Commit edcbb24

Browse files
crisbetotinayuangao
authored andcommitted
chore: update tslint (#6149)
Updates tslint to 5.5.0 and resolves some errors that weren't being caught before. This version also has the advantage of printing out the full stack trace if one of the rules throws an error.
1 parent 19614cd commit edcbb24

File tree

5 files changed

+11
-20
lines changed

5 files changed

+11
-20
lines changed

package-lock.json

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"stylelint": "^7.12.0",
114114
"ts-node": "^3.0.4",
115115
"tsconfig-paths": "^2.2.0",
116-
"tslint": "~5.4.3",
116+
"tslint": "~5.5.0",
117117
"tsutils": "^2.6.0",
118118
"typescript": "~2.2.1",
119119
"uglify-js": "^2.8.14",

src/cdk/rxjs/rx-chain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class RxChain<T> {
2424
* Starts a new chain and specifies the initial `this` value.
2525
* @param context Initial `this` value for the chain.
2626
*/
27-
static from<T>(context: Observable<T>): StrictRxChain<T> {
27+
static from<O>(context: Observable<O>): StrictRxChain<O> {
2828
return new RxChain(context);
2929
}
3030

src/lib/core/style/focus-origin-monitor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export class FocusOriginMonitor {
8484
}
8585
// Check if we're already monitoring this element.
8686
if (this._elementInfo.has(element)) {
87-
let info = this._elementInfo.get(element);
88-
info!.checkChildren = checkChildren;
89-
return info!.subject.asObservable();
87+
let cachedInfo = this._elementInfo.get(element);
88+
cachedInfo!.checkChildren = checkChildren;
89+
return cachedInfo!.subject.asObservable();
9090
}
9191

9292
// Create monitored element info.

tools/gulp/tasks/docs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ task('markdown-docs', () => {
9393
*/
9494
task('highlight-examples', () => {
9595
// rename files to fit format: [filename]-[filetype].html
96-
const renameFile = (path: any) => {
97-
const extension = path.extname.slice(1);
98-
path.basename = `${path.basename}-${extension}`;
96+
const renameFile = (filePath: any) => {
97+
const extension = filePath.extname.slice(1);
98+
filePath.basename = `${path.basename}-${extension}`;
9999
};
100100

101101
return src('src/material-examples/**/*.+(html|css|ts)')

0 commit comments

Comments
 (0)