mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
feat(prettier): add spacing before empty bracket in ImportDeclaration (#1447)
Co-authored-by: Dunqing <dengqing0821@gmail.com>
This commit is contained in:
parent
b052f022aa
commit
6892a298cf
2 changed files with 2 additions and 4 deletions
|
|
@ -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!(" "));
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue