diff --git a/crates/oxc_formatter/src/write/mod.rs b/crates/oxc_formatter/src/write/mod.rs index 544d030ae2907..ac1c93ff49196 100644 --- a/crates/oxc_formatter/src/write/mod.rs +++ b/crates/oxc_formatter/src/write/mod.rs @@ -1405,7 +1405,7 @@ impl<'a> FormatWrite<'a> for AstNode<'a, TSPropertySignature<'a>> { if self.computed() { write!(f, ["[", self.key(), "]"])?; } else { - write!(f, self.key())?; + format_property_key(self.key(), f)?; } if self.optional() { write!(f, "?")?; diff --git a/tasks/prettier_conformance/snapshots/prettier.ts.snap.md b/tasks/prettier_conformance/snapshots/prettier.ts.snap.md index 14612de2c106c..43776a7338c30 100644 --- a/tasks/prettier_conformance/snapshots/prettier.ts.snap.md +++ b/tasks/prettier_conformance/snapshots/prettier.ts.snap.md @@ -1,4 +1,4 @@ -ts compatibility: 528/573 (92.15%) +ts compatibility: 529/573 (92.32%) # Failed @@ -28,7 +28,6 @@ ts compatibility: 528/573 (92.15%) | typescript/conditional-types/new-ternary-spec.ts | 💥✨ | 10.67% | | typescript/conditional-types/parentheses.ts | 💥✨ | 15.22% | | typescript/conformance/types/functions/functionOverloadErrorsSyntax.ts | 💥 | 0.00% | -| typescript/custom/computedProperties/string.ts | 💥 | 73.33% | | typescript/decorators-ts/angular.ts | 💥 | 87.50% | | typescript/definite/without-annotation.ts | 💥 | 83.33% | | typescript/enum/computed-members.ts | 💥 | 0.00% |