Skip to content

Commit 769bb0b

Browse files
committed
remove tslint configuration
1 parent 136f4cf commit 769bb0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+30
-97
lines changed

src/compiler/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ namespace ts {
145145

146146
let symbolCount = 0;
147147

148-
let Symbol: new (flags: SymbolFlags, name: __String) => Symbol; // tslint:disable-line variable-name
148+
let Symbol: new (flags: SymbolFlags, name: __String) => Symbol;
149149
let classifiableNames: UnderscoreEscapedMap<true>;
150150

151151
const unreachableFlow: FlowNode = { flags: FlowFlags.Unreachable };

src/compiler/checker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ namespace ts {
5656
let requestedExternalEmitHelpers: ExternalEmitHelpers;
5757
let externalHelpersModule: Symbol;
5858

59-
// tslint:disable variable-name
6059
const Symbol = objectAllocator.getSymbolConstructor();
6160
const Type = objectAllocator.getTypeConstructor();
6261
const Signature = objectAllocator.getSignatureConstructor();
63-
// tslint:enable variable-name
6462

6563
let typeCount = 0;
6664
let symbolCount = 0;
@@ -32656,7 +32654,6 @@ namespace ts {
3265632654
}
3265732655

3265832656
namespace JsxNames {
32659-
// tslint:disable variable-name
3266032657
export const JSX = "JSX" as __String;
3266132658
export const IntrinsicElements = "IntrinsicElements" as __String;
3266232659
export const ElementClass = "ElementClass" as __String;
@@ -32666,6 +32663,5 @@ namespace ts {
3266632663
export const IntrinsicAttributes = "IntrinsicAttributes" as __String;
3266732664
export const IntrinsicClassAttributes = "IntrinsicClassAttributes" as __String;
3266832665
export const LibraryManagedAttributes = "LibraryManagedAttributes" as __String;
32669-
// tslint:enable variable-name
3267032666
}
3267132667
}

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ namespace ts {
16381638

16391639
case SyntaxKind.NullKeyword:
16401640
reportInvalidOptionValue(option && option.name === "extends"); // "extends" is the only option we don't allow null/undefined for
1641-
return null; // tslint:disable-line:no-null-keyword
1641+
return null;
16421642

16431643
case SyntaxKind.StringLiteral:
16441644
if (!isDoubleQuotedString(valueExpression)) {
@@ -2007,7 +2007,6 @@ namespace ts {
20072007
}
20082008

20092009
function isNullOrUndefined(x: any): x is null | undefined {
2010-
// tslint:disable-next-line:no-null-keyword
20112010
return x === undefined || x === null;
20122011
}
20132012

src/compiler/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace ts {
7575

7676
/** Create a MapLike with good performance. */
7777
function createDictionaryObject<T>(): MapLike<T> {
78-
const map = Object.create(/*prototype*/ null); // tslint:disable-line:no-null-keyword
78+
const map = Object.create(/*prototype*/ null);
7979

8080
// Using 'delete' on an object causes V8 to put the object in dictionary mode.
8181
// This disables creation of hidden classes, which are expensive when an object is
@@ -1609,7 +1609,7 @@ namespace ts {
16091609
}
16101610

16111611
/** Does nothing. */
1612-
export function noop(_?: {} | null | undefined): void { } // tslint:disable-line no-empty
1612+
export function noop(_?: {} | null | undefined): void { }
16131613

16141614
/** Do nothing and return false */
16151615
export function returnFalse(): false { return false; }
@@ -2159,7 +2159,7 @@ namespace ts {
21592159
return arg => f(arg) || g(arg);
21602160
}
21612161

2162-
export function assertType<T>(_: T): void { } // tslint:disable-line no-empty
2162+
export function assertType<T>(_: T): void { }
21632163

21642164
export function singleElementArray<T>(t: T | undefined): T[] | undefined {
21652165
return t === undefined ? undefined : [t];

src/compiler/factory.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,6 @@ namespace ts {
31823182
return node;
31833183
}
31843184

3185-
// tslint:disable-next-line variable-name
31863185
let SourceMapSource: new (fileName: string, text: string, skipTrivia?: (pos: number) => number) => SourceMapSource;
31873186

31883187
/**

src/compiler/moduleNameResolver.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ namespace ts {
420420
const packageJsonPath = combinePaths(root, normalized, "package.json");
421421
// `types-publisher` sometimes creates packages with `"typings": null` for packages that don't provide their own types.
422422
// See `createNotNeededPackageJSON` in the types-publisher` repo.
423-
// tslint:disable-next-line:no-null-keyword
424423
const isNotNeededPackage = host.fileExists(packageJsonPath) && (readJson(packageJsonPath, host) as PackageJson).typings === null;
425424
if (!isNotNeededPackage) {
426425
const baseFileName = getBaseFileName(normalized);
@@ -977,7 +976,7 @@ namespace ts {
977976
if (traceEnabled) {
978977
trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);
979978
}
980-
Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`); // tslint:disable-line
979+
Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`);
981980
return real;
982981
}
983982

src/compiler/parser.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ namespace ts {
88
JSDoc = 1 << 5,
99
}
1010

11-
// tslint:disable variable-name
1211
let NodeConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
1312
let TokenConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
1413
let IdentifierConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
1514
let SourceFileConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
16-
// tslint:enable variable-name
1715

1816
export function createNode(kind: SyntaxKind, pos?: number, end?: number): Node {
1917
if (kind === SyntaxKind.SourceFile) {
@@ -584,12 +582,10 @@ namespace ts {
584582
const disallowInAndDecoratorContext = NodeFlags.DisallowInContext | NodeFlags.DecoratorContext;
585583

586584
// capture constructors in 'initializeState' to avoid null checks
587-
// tslint:disable variable-name
588585
let NodeConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
589586
let TokenConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
590587
let IdentifierConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
591588
let SourceFileConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
592-
// tslint:enable variable-name
593589

594590
let sourceFile: SourceFile;
595591
let parseDiagnostics: DiagnosticWithLocation[];
@@ -6395,7 +6391,7 @@ namespace ts {
63956391

63966392
export function parseIsolatedJSDocComment(content: string, start: number | undefined, length: number | undefined): { jsDoc: JSDoc, diagnostics: Diagnostic[] } | undefined {
63976393
initializeState(content, ScriptTarget.Latest, /*_syntaxCursor:*/ undefined, ScriptKind.JS);
6398-
sourceFile = <SourceFile>{ languageVariant: LanguageVariant.Standard, text: content }; // tslint:disable-line no-object-literal-type-assertion
6394+
sourceFile = <SourceFile>{ languageVariant: LanguageVariant.Standard, text: content };
63996395
const jsDoc = parseJSDocCommentWorker(start, length);
64006396
const diagnostics = parseDiagnostics;
64016397
clearState();

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3095,7 +3095,7 @@ namespace ts {
30953095

30963096
function getCompilerOptionsObjectLiteralSyntax() {
30973097
if (_compilerOptionsObjectLiteralSyntax === undefined) {
3098-
_compilerOptionsObjectLiteralSyntax = null; // tslint:disable-line:no-null-keyword
3098+
_compilerOptionsObjectLiteralSyntax = null;
30993099
const jsonObjectLiteral = getTsConfigObjectLiteralExpression(options.configFile);
31003100
if (jsonObjectLiteral) {
31013101
for (const prop of getPropertyAssignment(jsonObjectLiteral, "compilerOptions")) {

src/compiler/resolutionCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ namespace ts {
418418
if (isInDirectoryPath(rootPath, failedLookupLocationPath)) {
419419
// Ensure failed look up is normalized path
420420
failedLookupLocation = isRootedDiskPath(failedLookupLocation) ? normalizePath(failedLookupLocation) : getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
421-
Debug.assert(failedLookupLocation.length === failedLookupLocationPath.length, `FailedLookup: ${failedLookupLocation} failedLookupLocationPath: ${failedLookupLocationPath}`); // tslint:disable-line
421+
Debug.assert(failedLookupLocation.length === failedLookupLocationPath.length, `FailedLookup: ${failedLookupLocation} failedLookupLocationPath: ${failedLookupLocationPath}`);
422422
const subDirectoryInRoot = failedLookupLocationPath.indexOf(directorySeparator, rootPath.length + 1);
423423
if (subDirectoryInRoot !== -1) {
424424
// Instead of watching root, watch directory in root to avoid watching excluded directories not needed for module resolution

src/compiler/sourcemap.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,10 @@ namespace ts {
309309
}
310310

311311
function isStringOrNull(x: any) {
312-
// tslint:disable-next-line:no-null-keyword
313312
return typeof x === "string" || x === null;
314313
}
315314

316315
export function isRawSourceMap(x: any): x is RawSourceMap {
317-
// tslint:disable-next-line:no-null-keyword
318316
return x !== null
319317
&& typeof x === "object"
320318
&& x.version === 3

0 commit comments

Comments
 (0)