Feature request: format Template literals without expressions as string
See original GitHub issueFormat
const foo = `bar`;
to
const foo = "bar";
---single-quote
const foo = 'bar';
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Template literals (Template strings) - JavaScript | MDN
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded ...
Read more >ES6 Template Literals (Template Strings) - CanIUse
Template literals are string literals allowing embedded expressions using backtick characters (`). You can use multi-line strings and string interpolation ...
Read more >Restrict template literal interpolation expressions to strings
Without the ability to type string template literals, ... Feature request: Use restrict-template-expressions rule denoland/deno_lint#268.
Read more >Understanding Template Literals in JavaScript - DigitalOcean
In this article, you reviewed single- and double-quoted string literals and you learned about template literals and tagged template literals.
Read more >Getting Literal With ES6 Template Strings - Chrome Developers
One of their first real benefits is string substitution. Substitution allows us to take any valid JavaScript expression (including say, the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s ESLint’s job. See https://github.com/prettier/eslint-config-prettier#forbid-unnecessary-backticks
Out of scope prettier