feat(prettier): add spacing before empty bracket in ImportDeclaration (#1447)

Co-authored-by: Dunqing <dengqing0821@gmail.com>
This commit is contained in:
Boshen 2023-11-20 15:14:38 +08:00 committed by GitHub
parent b052f022aa
commit 6892a298cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -69,7 +69,7 @@ pub fn print_module_specifiers<'a, T: Format<'a>>(
) -> Doc<'a> {
let mut parts = p.vec();
if specifiers.is_empty() {
parts.push(ss!("{}"));
parts.push(ss!(" {}"));
} else {
parts.push(ss!(" "));

View file

@ -1,4 +1,4 @@
Compatibility: 111/601 (18.47%)
Compatibility: 113/601 (18.80%)
# Failed
@ -331,7 +331,6 @@ Compatibility: 111/601 (18.47%)
### export
* export/blank-line-between-specifiers.js
* export/empty.js
* export/same-local-and-exported.js
### export-default
@ -408,7 +407,6 @@ Compatibility: 111/601 (18.47%)
### import
* import/comments.js
* import/empty-import.js
* import/inline.js
* import/multiple_standalones.js
* import/same-local-and-imported.js