Skip to content

Commit 023e4c6

Browse files
committed
disable no-redeclare
1 parent 9851f9c commit 023e4c6

15 files changed

+0
-23
lines changed

.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"no-fallthrough": "error",
7878
"no-new-func": "error",
7979
"no-new-wrappers": "error",
80-
"no-redeclare": "error",
8180
"no-return-await": "error",
8281
"no-restricted-globals": ["error",
8382
{ "name": "setTimeout" },

scripts/failed-tests.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ declare class FailedTestsReporter extends Mocha.reporters.Base {
1212
done(failures: number, fn?: (failures: number) => void): void;
1313
}
1414

15-
// eslint-disable-next-line no-redeclare
1615
declare namespace FailedTestsReporter {
1716
interface ReporterOptions {
1817
file?: string;

src/compiler/builder.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,6 @@ namespace ts {
11331133
}
11341134
}
11351135

1136-
// eslint-disable-next-line no-redeclare
11371136
namespace ts {
11381137
export type AffectedFileResult<T> = { result: T; affected: SourceFile | Program; } | undefined;
11391138

src/compiler/builderState.ts

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace ts {
1313
}
1414

1515
/* @internal */
16-
// eslint-disable-next-line no-redeclare
1716
namespace ts {
1817
export function getFileEmitOutput(program: Program, sourceFile: SourceFile, emitOnlyDtsFiles: boolean,
1918
cancellationToken?: CancellationToken, customTransformers?: CustomTransformers): EmitOutput {
@@ -82,7 +81,6 @@ namespace ts {
8281
}
8382

8483
/* @internal */
85-
// eslint-disable-next-line no-redeclare
8684
namespace ts.BuilderState {
8785
/**
8886
* Information about the source file: Its version and optional signature from last emit

src/compiler/core.ts

-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace ts {
66
export const version = `${versionMajorMinor}.0-dev`;
77
}
88

9-
// eslint-disable-next-line no-redeclare
109
namespace ts {
1110
/**
1211
* Type of objects whose values are all of the same type.
@@ -68,7 +67,6 @@ namespace ts {
6867
}
6968

7069
/* @internal */
71-
// eslint-disable-next-line no-redeclare
7270
namespace ts {
7371
export const emptyArray: never[] = [] as never[];
7472

src/compiler/factory.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3428,7 +3428,6 @@ namespace ts {
34283428
}
34293429

34303430
/* @internal */
3431-
// eslint-disable-next-line no-redeclare
34323431
namespace ts {
34333432
export const nullTransformationContext: TransformationContext = {
34343433
enableEmitNotification: noop,

src/compiler/performance.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace ts {
77

88
/*@internal*/
99
/** Performance measurements for the compiler. */
10-
// eslint-disable-next-line no-redeclare
1110
namespace ts.performance {
1211
declare const onProfilerEvent: { (markName: string): void; profiler: boolean; };
1312

src/compiler/tsbuild.ts

-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ namespace ts {
150150
}
151151
}
152152

153-
// eslint-disable-next-line no-redeclare
154153
namespace ts {
155154
const minimumDate = new Date(-8640000000000000);
156155
const maximumDate = new Date(8640000000000000);

src/compiler/utilities.ts

-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ namespace ts {
1212
}
1313

1414
/* @internal */
15-
// eslint-disable-next-line no-redeclare
1615
namespace ts {
1716
export const resolvingEmptyArray: never[] = [] as never[];
1817
export const emptyMap = createMap<never>() as ReadonlyMap<never> & ReadonlyPragmaMap;
@@ -4667,7 +4666,6 @@ namespace ts {
46674666
}
46684667
}
46694668

4670-
// eslint-disable-next-line no-redeclare
46714669
namespace ts {
46724670
export function getDefaultLibFileName(options: CompilerOptions): string {
46734671
switch (options.target) {
@@ -5449,7 +5447,6 @@ namespace ts {
54495447
}
54505448

54515449
// Simple node tests of the form `node.kind === SyntaxKind.Foo`.
5452-
// eslint-disable-next-line no-redeclare
54535450
namespace ts {
54545451
// Literals
54555452
export function isNumericLiteral(node: Node): node is NumericLiteral {
@@ -6192,7 +6189,6 @@ namespace ts {
61926189
//
61936190
// All node tests in the following list should *not* reference parent pointers so that
61946191
// they may be used with transformations.
6195-
// eslint-disable-next-line no-redeclare
61966192
namespace ts {
61976193
/* @internal */
61986194
export function isSyntaxList(n: Node): n is SyntaxList {
@@ -7036,7 +7032,6 @@ namespace ts {
70367032
}
70377033

70387034
/* @internal */
7039-
// eslint-disable-next-line no-redeclare
70407035
namespace ts {
70417036
export function isNamedImportsOrExports(node: Node): node is NamedImportsOrExports {
70427037
return node.kind === SyntaxKind.NamedImports || node.kind === SyntaxKind.NamedExports;
@@ -7664,7 +7659,6 @@ namespace ts {
76647659
}
76657660

76667661
/* @internal */
7667-
// eslint-disable-next-line no-redeclare
76687662
namespace ts {
76697663
export function getPathComponentsRelativeTo(from: string, to: string, stringEqualityComparer: (a: string, b: string) => boolean, getCanonicalFileName: GetCanonicalFileName) {
76707664
const fromComponents = reducePathComponents(getPathComponents(from));

src/compiler/visitor.ts

-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ namespace ts {
935935
}
936936

937937
/* @internal */
938-
// eslint-disable-next-line no-redeclare
939938
namespace ts {
940939
function reduceNode<T>(node: Node | undefined, f: (memo: T, node: Node) => T, initial: T) {
941940
return node ? f(initial, node) : initial;

src/compiler/watch.ts

-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ namespace ts {
438438
}
439439
}
440440

441-
// eslint-disable-next-line no-redeclare
442441
namespace ts {
443442
export interface ReadBuildProgramHost {
444443
useCaseSensitiveFileNames(): boolean;

src/harness/harness.ts

-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ if (Harness.IO.tryEnableSourceMapsForHost && /^development$/i.test(Harness.IO.ge
608608
Harness.IO.tryEnableSourceMapsForHost();
609609
}
610610

611-
// eslint-disable-next-line no-redeclare
612611
namespace Harness {
613612
export const libFolder = "built/local/";
614613
const tcServicesFileName = ts.combinePaths(libFolder, "typescriptServices.js");

src/server/utilities.ts

-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ namespace ts.server {
122122
}
123123

124124
/* @internal */
125-
// eslint-disable-next-line no-redeclare
126125
namespace ts.server {
127126
export class ThrottledOperations {
128127
private readonly pendingTimeouts: Map<any> = createMap<any>();
@@ -224,7 +223,6 @@ namespace ts.server {
224223
}
225224

226225
/* @internal */
227-
// eslint-disable-next-line no-redeclare
228226
namespace ts {
229227
// Additional tsserver specific watch information
230228
export const enum WatchType {

src/services/findAllReferences.ts

-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,6 @@ namespace ts.FindAllReferences {
530530

531531
/** Encapsulates the core find-all-references algorithm. */
532532
/* @internal */
533-
// eslint-disable-next-line no-redeclare
534533
namespace ts.FindAllReferences.Core {
535534
/** Core find-all-references algorithm. Handles special cases before delegating to `getReferencedSymbolsForSymbol`. */
536535
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 {

src/services/utilities.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,6 @@ namespace ts {
14391439

14401440
// Display-part writer helpers
14411441
/* @internal */
1442-
// eslint-disable-next-line no-redeclare
14431442
namespace ts {
14441443
export function isFirstDeclarationOfSymbolParameter(symbol: Symbol) {
14451444
return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === SyntaxKind.Parameter;

0 commit comments

Comments
 (0)