Skip to content

Commit 8bf5ebc

Browse files
committed
remove tslint, tslint:disable-next-line, update @typescript-eslint/*
1 parent 68ae438 commit 8bf5ebc

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ netci.groovy
99
scripts
1010
src
1111
tests
12-
tslint.json
1312
Jakefile.js
13+
.eslintrc
1414
.editorconfig
1515
.failed-tests
1616
.git

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ branches:
1818

1919
install:
2020
- npm uninstall typescript --no-save
21-
- npm uninstall tslint --no-save
2221
- npm install
2322

2423
cache:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"@types/through2": "latest",
5555
"@types/travis-fold": "latest",
5656
"@types/xml2js": "^0.4.0",
57-
"@typescript-eslint/eslint-plugin": "1.11.0",
58-
"@typescript-eslint/parser": "1.11.0",
57+
"@typescript-eslint/eslint-plugin": "1.12.0",
58+
"@typescript-eslint/parser": "1.12.0",
5959
"async": "latest",
6060
"azure-devops-node-api": "^8.0.0",
6161
"browser-resolve": "^1.11.2",

scripts/processDiagnosticMessages.ts

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ function buildInfoFileOutput(messageTable: InputDiagnosticMessageTable, inputFil
6666
" function diag(code: number, category: DiagnosticCategory, key: string, message: string, reportsUnnecessary?: {}): DiagnosticMessage {\r\n" +
6767
" return { code, category, key, message, reportsUnnecessary };\r\n" +
6868
" }\r\n" +
69-
" // tslint:disable-next-line variable-name\r\n" +
7069
" export const Diagnostics = {\r\n";
7170
messageTable.forEach(({ code, category, reportsUnnecessary }, name) => {
7271
const propName = convertPropertyName(name);

src/compiler/emitter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ namespace ts {
413413
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
414414
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
415415
// But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow.
416-
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the
416+
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`
417417
const sourceFile = declarationTransform.transformed[0] as SourceFile;
418418
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
419419
}

0 commit comments

Comments
 (0)