mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2025-02-20 12:02:53 +00:00
remove tslint, tslint:disable-next-line, update @typescript-eslint/*
This commit is contained in:
parent
68ae4382bd
commit
8bf5ebc417
@ -9,8 +9,8 @@ netci.groovy
|
||||
scripts
|
||||
src
|
||||
tests
|
||||
tslint.json
|
||||
Jakefile.js
|
||||
.eslintrc
|
||||
.editorconfig
|
||||
.failed-tests
|
||||
.git
|
||||
|
@ -18,7 +18,6 @@ branches:
|
||||
|
||||
install:
|
||||
- npm uninstall typescript --no-save
|
||||
- npm uninstall tslint --no-save
|
||||
- npm install
|
||||
|
||||
cache:
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
|
@ -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 doesn’t 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user