Skip to content

Commit 0858933

Browse files
authored
fix(44637): add spaces between exports assignment equal token (#44655)
1 parent 6e4b730 commit 0858933

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/services/formatting/rules.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ namespace ts.formatting {
459459
// equal in import a = module('a');
460460
// falls through
461461
case SyntaxKind.ImportEqualsDeclaration:
462+
// equal in export = 1
463+
// falls through
464+
case SyntaxKind.ExportAssignment:
462465
// equal in let a = 0
463466
// falls through
464467
case SyntaxKind.VariableDeclaration:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference path="fourslash.ts"/>
2+
3+
////export='foo';
4+
5+
format.document();
6+
verify.currentFileContentIs(`export = 'foo';`);

0 commit comments

Comments
 (0)