question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: format Template literals without expressions as string

See original GitHub issue

Format

const foo = `bar`;

to

const foo = "bar";

---single-quote

const foo = 'bar';

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
thorn0commented, Jan 13, 2020
0reactions
alexander-akaitcommented, Jan 31, 2020

Out of scope prettier

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found