Preserve double quotes in JSX with deno fmt #26782
Labels
deno fmt
Related to the "deno fmt" subcommand or dprint
suggestion
suggestions for new features (yet to be agreed)
Description:
When formatting code with
deno fmt
, it currently converts double quotes to single quotes in JSX (HTML in JS) components. This behavior differs from Prettier, which preserves double quotes in JSX if thesingleQuotes
option is set totrue
.Example:
In Prettier, with
singleQuotes: true
, double quotes are preserved in JSX, as shown below:However,
deno fmt
changes the quotes in JSX attributes to single quotes:Feature Request:
Could Deno provide an option to preserve or enforce double quotes specifically in JSX, similar to how Prettier handles this with
singleQuotes: true
?This feature would help users maintain consistency with double quotes in JSX without affecting other parts of the code where single quotes might be preferred.
The text was updated successfully, but these errors were encountered: