mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
remove tslint:* directive
This commit is contained in:
1 parent
949770a4fe
commit
9c853f3015
23 files changed
+84
-92
No files matched your search
@@ -413,7 +413,8 @@ 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`
|
||||
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the eslint directive can be all be removed.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const sourceFile = declarationTransform.transformed[0] as SourceFile;
|
||||
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user