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

fix(rome_js_formatter): format JsxString node #4334

Merged
merged 4 commits into from
Apr 1, 2023
Merged

fix(rome_js_formatter): format JsxString node #4334

merged 4 commits into from
Apr 1, 2023

Conversation

nissy-dev
Copy link
Contributor

Summary

Fix #4054

Rome doesn't format JsxString, so I applied FormatLiteralStringToken logic to JsxString node.

see: https://docs.rome.tools/playground/?indentStyle=space&code=YwBvAG4AcwB0ACAAQQAgAD0AIAAoACkAIAA9AD4AIAB7AAoAIAAgAHIAZQB0AHUAcgBuACAAPABkAGkAdgAgAHIAbwBsAGUAPQAiAG4AYQB2AGkAZwBhAHQAaQBvAG4AIgAgAC8APgAKAH0ACgAKAGMAbwBuAHMAdAAgAEIAIAA9ACAAKAApACAAPQA%2BACAAewAKACAAIAByAGUAdAB1AHIAbgAgADwAZABpAHYAIAByAG8AbABlAD0AJwBuAGEAdgBpAGcAYQB0AGkAbwBuACcAIAAvAD4ACgB9AA%3D%3D

Test Plan

I update the snapshot test

Changelog

  • The PR requires a changelog line

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@netlify
Copy link

netlify bot commented Mar 30, 2023

Deploy Preview for docs-rometools canceled.

Name Link
🔨 Latest commit 01e2542
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/64277d872f763b0008a8fabc

@github-actions github-actions bot added the A-Formatter Area: formatter label Mar 30, 2023
@nissy-dev nissy-dev marked this pull request as ready for review March 30, 2023 15:05
@ematipico
Copy link
Contributor

@nissy-dev I believe this PR requires a new line in the changelog. Could you tick the checkbox in the template and add an update to the CHANGELOG.md, please?

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
@nissy-dev nissy-dev changed the title feat(rome_js_formatter): format JsxString node fix(rome_js_formatter): format JsxString node Apr 1, 2023
@nissy-dev nissy-dev merged commit 39fe909 into main Apr 1, 2023
@nissy-dev nissy-dev deleted the fix-4054 branch April 1, 2023 02:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Double quotes are not being enforced for JSX string property values
2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载