fix(prettier): incorrect dot operator in MetaProperty (#1369)

fix(prettier): incorrect dot operator in MetaProperty

test: update snap
This commit is contained in:
Dunqing 2023-11-17 17:56:57 +08:00 committed by GitHub
parent 6d8fa7ff36
commit 6ac6d7158f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -1117,7 +1117,7 @@ impl<'a> Format<'a> for NewExpression<'a> {
impl<'a> Format<'a> for MetaProperty {
fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> {
array![p, format!(p, self.meta), ss!(","), format!(p, self.property)]
array![p, format!(p, self.meta), ss!("."), format!(p, self.property)]
}
}

View file

@ -1,4 +1,4 @@
Compatibility: 13/173 (7.51%)
Compatibility: 14/173 (8.09%)
# Failed
@ -81,7 +81,6 @@ Compatibility: 13/173 (7.51%)
* import-assertions/bracket-spacing
* import-attributes
* import-attributes/bracket-spacing
* import-meta
* import-reflection
* in
* label