chore(tslint): update tslint to 4.x (#13603)
This commit is contained in:
@ -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]);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
8
tools/public_api_guard/core/index.d.ts
vendored
8
tools/public_api_guard/core/index.d.ts
vendored
@ -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;
|
||||
|
@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user