quoteStyle should include backtick #9278
Replies: 2 comments
-
|
Hey! That's a fair point, but the reason Biome's If you want template literals to be used, you can just write them naturally— Biome won't try to convert them to regular strings. If you're concerned about consistency, you might want a separate rule like You could propose a new rule that enforces/ disallows template literal usage if that's what you need. Hope that explains the reasoning! |
Beta Was this translation helpful? Give feedback.
-
|
That reasoning is... just incorrect with respect to JS: if there is no leading tag, and there is no templating syntax ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
quoteStyle should not be "either single or double", it should be either single, double, or backtick. Biome can be opinionated, but it should never disallow valid JS from being linted as valid.
Beta Was this translation helpful? Give feedback.
All reactions