Skip to content

Commit 90fd46f

Browse files
committed
feat(formatter): normalize key of TSPropertySignature (#14083)
1 parent 46cceb8 commit 90fd46f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/oxc_formatter/src/write/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ impl<'a> FormatWrite<'a> for AstNode<'a, TSPropertySignature<'a>> {
14051405
if self.computed() {
14061406
write!(f, ["[", self.key(), "]"])?;
14071407
} else {
1408-
write!(f, self.key())?;
1408+
format_property_key(self.key(), f)?;
14091409
}
14101410
if self.optional() {
14111411
write!(f, "?")?;

tasks/prettier_conformance/snapshots/prettier.ts.snap.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ts compatibility: 528/573 (92.15%)
1+
ts compatibility: 529/573 (92.32%)
22

33
# Failed
44

@@ -28,7 +28,6 @@ ts compatibility: 528/573 (92.15%)
2828
| typescript/conditional-types/new-ternary-spec.ts | 💥✨ | 10.67% |
2929
| typescript/conditional-types/parentheses.ts | 💥✨ | 15.22% |
3030
| typescript/conformance/types/functions/functionOverloadErrorsSyntax.ts | 💥 | 0.00% |
31-
| typescript/custom/computedProperties/string.ts | 💥 | 73.33% |
3231
| typescript/decorators-ts/angular.ts | 💥 | 87.50% |
3332
| typescript/definite/without-annotation.ts | 💥 | 83.33% |
3433
| typescript/enum/computed-members.ts | 💥 | 0.00% |

0 commit comments

Comments
 (0)