Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
feat(rome_js_formatter): Support prettier-style jsx quotes #4486
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Jun 8, 2023
1 parent e77021d commit 3df80df
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions npm/js-api/tests/formatContent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,8 @@ describe("Rome WebAssembly formatContent", () => {
});

it("should format content with custom configuration (8 spaces, jsx single quotes, preserve quotes)", () => {
const content = `<div
bar='foo'
baz={"foo"}
/>`;
const formatted = `<div
bar='foo'
baz={'foo'}
/>
const content = `<div bar="foo" baz={"foo"} />`;
const formatted = `<div bar='foo' baz={"foo"} />;
`;

rome.applyConfiguration({
Expand Down

0 comments on commit 3df80df

Please sign in to comment.