remove tslint, tslint:disable-next-line, update @typescript-eslint/*

This commit is contained in:
Alexander T 2019-07-18 15:29:59 +03:00
parent 68ae4382bd
commit 8bf5ebc417
5 changed files with 4 additions and 6 deletions

View file

@ -9,8 +9,8 @@ netci.groovy
scripts
src
tests
tslint.json
Jakefile.js
.eslintrc
.editorconfig
.failed-tests
.git

View file

@ -18,7 +18,6 @@ branches:
install:
- npm uninstall typescript --no-save
- npm uninstall tslint --no-save
- npm install
cache:

View file

@ -54,8 +54,8 @@
"@types/through2": "latest",
"@types/travis-fold": "latest",
"@types/xml2js": "^0.4.0",
"@typescript-eslint/eslint-plugin": "1.11.0",
"@typescript-eslint/parser": "1.11.0",
"@typescript-eslint/eslint-plugin": "1.12.0",
"@typescript-eslint/parser": "1.12.0",
"async": "latest",
"azure-devops-node-api": "^8.0.0",
"browser-resolve": "^1.11.2",

View file

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

View file

@ -413,7 +413,7 @@ namespace ts {
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
// But at the same time, the LKG (3.5) necessitates it because it doesnt narrow.
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`
const sourceFile = declarationTransform.transformed[0] as SourceFile;
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
}