disable no-redeclare
This commit is contained in:
parent
9851f9c331
commit
023e4c6249
|
@ -77,7 +77,6 @@
|
|||
"no-fallthrough": "error",
|
||||
"no-new-func": "error",
|
||||
"no-new-wrappers": "error",
|
||||
"no-redeclare": "error",
|
||||
"no-return-await": "error",
|
||||
"no-restricted-globals": ["error",
|
||||
{ "name": "setTimeout" },
|
||||
|
|
1
scripts/failed-tests.d.ts
vendored
1
scripts/failed-tests.d.ts
vendored
|
@ -12,7 +12,6 @@ declare class FailedTestsReporter extends Mocha.reporters.Base {
|
|||
done(failures: number, fn?: (failures: number) => void): void;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
declare namespace FailedTestsReporter {
|
||||
interface ReporterOptions {
|
||||
file?: string;
|
||||
|
|
|
@ -1133,7 +1133,6 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export type AffectedFileResult<T> = { result: T; affected: SourceFile | Program; } | undefined;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export function getFileEmitOutput(program: Program, sourceFile: SourceFile, emitOnlyDtsFiles: boolean,
|
||||
cancellationToken?: CancellationToken, customTransformers?: CustomTransformers): EmitOutput {
|
||||
|
@ -82,7 +81,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts.BuilderState {
|
||||
/**
|
||||
* Information about the source file: Its version and optional signature from last emit
|
||||
|
|
|
@ -6,7 +6,6 @@ namespace ts {
|
|||
export const version = `${versionMajorMinor}.0-dev`;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
/**
|
||||
* Type of objects whose values are all of the same type.
|
||||
|
@ -68,7 +67,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export const emptyArray: never[] = [] as never[];
|
||||
|
||||
|
|
|
@ -3428,7 +3428,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export const nullTransformationContext: TransformationContext = {
|
||||
enableEmitNotification: noop,
|
||||
|
|
|
@ -7,7 +7,6 @@ namespace ts {
|
|||
|
||||
/*@internal*/
|
||||
/** Performance measurements for the compiler. */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts.performance {
|
||||
declare const onProfilerEvent: { (markName: string): void; profiler: boolean; };
|
||||
|
||||
|
|
|
@ -150,7 +150,6 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
const minimumDate = new Date(-8640000000000000);
|
||||
const maximumDate = new Date(8640000000000000);
|
||||
|
|
|
@ -12,7 +12,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export const resolvingEmptyArray: never[] = [] as never[];
|
||||
export const emptyMap = createMap<never>() as ReadonlyMap<never> & ReadonlyPragmaMap;
|
||||
|
@ -4667,7 +4666,6 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export function getDefaultLibFileName(options: CompilerOptions): string {
|
||||
switch (options.target) {
|
||||
|
@ -5449,7 +5447,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
// Simple node tests of the form `node.kind === SyntaxKind.Foo`.
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
// Literals
|
||||
export function isNumericLiteral(node: Node): node is NumericLiteral {
|
||||
|
@ -6192,7 +6189,6 @@ namespace ts {
|
|||
//
|
||||
// All node tests in the following list should *not* reference parent pointers so that
|
||||
// they may be used with transformations.
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
/* @internal */
|
||||
export function isSyntaxList(n: Node): n is SyntaxList {
|
||||
|
@ -7036,7 +7032,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export function isNamedImportsOrExports(node: Node): node is NamedImportsOrExports {
|
||||
return node.kind === SyntaxKind.NamedImports || node.kind === SyntaxKind.NamedExports;
|
||||
|
@ -7664,7 +7659,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export function getPathComponentsRelativeTo(from: string, to: string, stringEqualityComparer: (a: string, b: string) => boolean, getCanonicalFileName: GetCanonicalFileName) {
|
||||
const fromComponents = reducePathComponents(getPathComponents(from));
|
||||
|
|
|
@ -935,7 +935,6 @@ namespace ts {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
function reduceNode<T>(node: Node | undefined, f: (memo: T, node: Node) => T, initial: T) {
|
||||
return node ? f(initial, node) : initial;
|
||||
|
|
|
@ -438,7 +438,6 @@ namespace ts {
|
|||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export interface ReadBuildProgramHost {
|
||||
useCaseSensitiveFileNames(): boolean;
|
||||
|
|
|
@ -608,7 +608,6 @@ if (Harness.IO.tryEnableSourceMapsForHost && /^development$/i.test(Harness.IO.ge
|
|||
Harness.IO.tryEnableSourceMapsForHost();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace Harness {
|
||||
export const libFolder = "built/local/";
|
||||
const tcServicesFileName = ts.combinePaths(libFolder, "typescriptServices.js");
|
||||
|
|
|
@ -122,7 +122,6 @@ namespace ts.server {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts.server {
|
||||
export class ThrottledOperations {
|
||||
private readonly pendingTimeouts: Map<any> = createMap<any>();
|
||||
|
@ -224,7 +223,6 @@ namespace ts.server {
|
|||
}
|
||||
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
// Additional tsserver specific watch information
|
||||
export const enum WatchType {
|
||||
|
|
|
@ -530,7 +530,6 @@ namespace ts.FindAllReferences {
|
|||
|
||||
/** Encapsulates the core find-all-references algorithm. */
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts.FindAllReferences.Core {
|
||||
/** Core find-all-references algorithm. Handles special cases before delegating to `getReferencedSymbolsForSymbol`. */
|
||||
export function getReferencedSymbolsForNode(position: number, node: Node, program: Program, sourceFiles: readonly SourceFile[], cancellationToken: CancellationToken, options: Options = {}, sourceFilesSet: ReadonlyMap<true> = arrayToSet(sourceFiles, f => f.fileName)): readonly SymbolAndEntries[] | undefined {
|
||||
|
|
|
@ -1439,7 +1439,6 @@ namespace ts {
|
|||
|
||||
// Display-part writer helpers
|
||||
/* @internal */
|
||||
// eslint-disable-next-line no-redeclare
|
||||
namespace ts {
|
||||
export function isFirstDeclarationOfSymbolParameter(symbol: Symbol) {
|
||||
return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === SyntaxKind.Parameter;
|
||||
|
|
Loading…
Reference in a new issue