chore(tslint): update tslint to 4.x (#13603)

This commit is contained in:
Victor Berchet
2016-12-27 14:55:58 -08:00
committed by Hans
parent e5c4e5801f
commit eed83443b8
50 changed files with 2599 additions and 5467 deletions

View File

@ -80,7 +80,7 @@ interface DecoratorInvocation {
}
}
return ts.createSourceFile(fileName, newContent, languageVersion, true);
};
}
}
export class TsickleCompilerHost extends DelegatingHost {
@ -104,7 +104,7 @@ export class TsickleCompilerHost extends DelegatingHost {
tsickle.annotate(this.oldProgram, sourceFile, {untyped: true});
this.diagnostics = diagnostics;
return ts.createSourceFile(fileName, output, languageVersion, true);
};
}
}
const IGNORED_FILES = /\.ngfactory\.js$|\.ngstyle\.js$/;
@ -156,5 +156,5 @@ export class MetadataWriterHost extends DelegatingHost {
throw new Error('Bundled emit with --out is not supported');
}
this.writeMetadata(fileName, sourceFiles[0]);
};
}
}

View File

@ -160,4 +160,4 @@ export class Tsc implements CompilerInterface {
return emitResult.emitSkipped ? 1 : 0;
}
}
export var tsc: CompilerInterface = new Tsc();
export const tsc: CompilerInterface = new Tsc();

View File

@ -1026,13 +1026,13 @@ export declare class WrappedValue {
}
/** @experimental */
export declare var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
/** @experimental */
export declare var wtfEndTimeRange: (range: any) => void;
export declare const wtfEndTimeRange: (range: any) => void;
/** @experimental */
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
/** @experimental */
export interface WtfScopeFn {
@ -1040,4 +1040,4 @@ export interface WtfScopeFn {
}
/** @experimental */
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
export declare const wtfStartTimeRange: (rangeType: string, action: string) => any;

View File

@ -6,8 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {RuleFailure} from 'tslint/lib';
import {RuleWalker} from 'tslint/lib/language/walker';
import {RuleFailure} from 'tslint/lib/lint';
import {AbstractRule} from 'tslint/lib/rules';
import * as ts from 'typescript';