This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Unnecessary format changes in JSX between 10.0.1 and 10.1.0-rc.1 #675
Description
I just installed 10.1.0-rc.1 in a project of ours for testing and ran the formatter across the code. This resulted in 83 files changed.
The reason was that as a side effect of #664, JSX tags are now formatted differently, as can also be seen in the test result diffs in this PR.
Before:
<svg
viewBox="0 0 24 24"
width="24"
height="24"
stroke="currentColor"
strokeWidth="2"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
className="text-gray-400">
<polyline points="6 9 12 15 18 9" />
</svg>
After:
<svg
viewBox="0 0 24 24"
width="24"
height="24"
stroke="currentColor"
strokeWidth="2"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
className="text-gray-400"
>
<polyline points="6 9 12 15 18 9" />
</svg>
While it may be debatable which style is better, I think the difference is not worth causing so many format changes in users' codebases.
Metadata
Metadata
Assignees
Labels
No labels