--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/export-extension/export.js --- # Input ```js export * as ns from 'mod'; export v from 'mod'; export a, * as b from 'mod'; export c, { foo } from 'mod'; export * as d, { bar } from 'mod'; export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,12 +1,29 @@ export * as ns from "mod"; -export v from "mod"; -export a, * as b from "mod"; -export c, { foo } from "mod"; -export * as d, { bar } from "mod"; +export +v; +from; +("mod"); +export +a, * as +b; +from; +("mod"); +export +c, { foo }; +from; +("mod"); +export * as d +, +{ + bar; +} +from; +("mod"); export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; -export Bar, { - barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr, -} from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; +export +Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr }; +from; +("barrrrrrrrrrrrrrrrrrrrrrrrrrrr"); export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo, ``` # Output ```js export * as ns from "mod"; export v; from; ("mod"); export a, * as b; from; ("mod"); export c, { foo }; from; ("mod"); export * as d , { bar; } from; ("mod"); export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr }; from; ("barrrrrrrrrrrrrrrrrrrrrrrrrrrr"); export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo, } from "fooooooooooooooooooooooooooooo"; ``` # Errors ``` export.js:2:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `*` but instead found `v` 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; i Remove v export.js:2:10 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^^^^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; i An explicit or implicit semicolon is expected here... 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^^^^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; i ...Which is required to end this statement 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^^^^^^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; export.js:2:15 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^^^^^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; i An explicit or implicit semicolon is expected here... 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^^^^^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; i ...Which is required to end this statement 1 │ export * as ns from 'mod'; > 2 │ export v from 'mod'; │ ^^^^^^^^^^ 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; export.js:3:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected a class, a function, or a variable declaration but instead found 'a' 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i Expected a class, a function, or a variable declaration here 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; export.js:3:11 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `*` operator. 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i This operator requires a left hand side value export.js:3:16 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i An explicit or implicit semicolon is expected here... 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i ...Which is required to end this statement 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^^^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; export.js:3:18 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i An explicit or implicit semicolon is expected here... 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i ...Which is required to end this statement 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; export.js:3:23 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i An explicit or implicit semicolon is expected here... 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; i ...Which is required to end this statement 1 │ export * as ns from 'mod'; 2 │ export v from 'mod'; > 3 │ export a, * as b from 'mod'; │ ^^^^^^^^^^ 4 │ export c, { foo } from 'mod'; 5 │ export * as d, { bar } from 'mod'; export.js:4:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected a class, a function, or a variable declaration but instead found 'c' 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; i Expected a class, a function, or a variable declaration here 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; export.js:4:19 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^^^^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; i An explicit or implicit semicolon is expected here... 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^^^^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; i ...Which is required to end this statement 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^^^^^^^^^^^^^^^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; export.js:4:24 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^^^^^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; i An explicit or implicit semicolon is expected here... 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^^^^^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; i ...Which is required to end this statement 2 │ export v from 'mod'; 3 │ export a, * as b from 'mod'; > 4 │ export c, { foo } from 'mod'; │ ^^^^^^^^^^ 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; export.js:5:14 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `from` but instead found `,` 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; > 5 │ export * as d, { bar } from 'mod'; │ ^ 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; i Remove , export.js:5:29 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; > 5 │ export * as d, { bar } from 'mod'; │ ^^^^^ 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; i An explicit or implicit semicolon is expected here... 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; > 5 │ export * as d, { bar } from 'mod'; │ ^^^^^ 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; i ...Which is required to end this statement 3 │ export a, * as b from 'mod'; 4 │ export c, { foo } from 'mod'; > 5 │ export * as d, { bar } from 'mod'; │ ^^^^^^^^^^ 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; export.js:7:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected a class, a function, or a variable declaration but instead found 'Bar' 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ i Expected a class, a function, or a variable declaration here 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ export.js:7:63 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ i An explicit or implicit semicolon is expected here... 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ i ...Which is required to end this statement 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ export.js:7:68 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ i An explicit or implicit semicolon is expected here... 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ i ...Which is required to end this statement 5 │ export * as d, { bar } from 'mod'; 6 │ export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; > 7 │ export Bar, { barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr } from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ export { foooooooooooooooooooooooooooooooooooooooooooooo, fooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; 9 │ ``` # Lines exceeding max width of 80 characters ``` 22: export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; ```