Skip to content

chore: update tslint #6149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"stylelint": "^7.12.0",
"ts-node": "^3.0.4",
"tsconfig-paths": "^2.2.0",
"tslint": "~5.4.3",
"tslint": "~5.5.0",
"tsutils": "^2.6.0",
"typescript": "~2.2.1",
"uglify-js": "^2.8.14",
Expand Down
2 changes: 1 addition & 1 deletion src/cdk/rxjs/rx-chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class RxChain<T> {
* Starts a new chain and specifies the initial `this` value.
* @param context Initial `this` value for the chain.
*/
static from<T>(context: Observable<T>): StrictRxChain<T> {
static from<O>(context: Observable<O>): StrictRxChain<O> {
return new RxChain(context);
}

Expand Down
6 changes: 3 additions & 3 deletions src/lib/core/style/focus-origin-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ export class FocusOriginMonitor {
}
// Check if we're already monitoring this element.
if (this._elementInfo.has(element)) {
let info = this._elementInfo.get(element);
info!.checkChildren = checkChildren;
return info!.subject.asObservable();
let cachedInfo = this._elementInfo.get(element);
cachedInfo!.checkChildren = checkChildren;
return cachedInfo!.subject.asObservable();
}

// Create monitored element info.
Expand Down
6 changes: 3 additions & 3 deletions tools/gulp/tasks/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ task('markdown-docs', () => {
*/
task('highlight-examples', () => {
// rename files to fit format: [filename]-[filetype].html
const renameFile = (path: any) => {
const extension = path.extname.slice(1);
path.basename = `${path.basename}-${extension}`;
const renameFile = (filePath: any) => {
const extension = filePath.extname.slice(1);
filePath.basename = `${path.basename}-${extension}`;
};

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