Skip to content

Commit 023e4c6

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

15 files changed

Lines changed: 0 additions & 23 deletions

.eslintrc.json

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 6 deletions
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

Lines changed: 0 additions & 1 deletion
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;

0 commit comments

Comments
 (0)