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.

no-template-curly-in-string for currentValueText

See original GitHub issue

When I set currentValueText with the value (e.g. “${value} some text”), I get a compile warning:

Line 275: Unexpected template string expression no-template-curly-in-string

The reason is because ${value} is what you use for es6 template strings.

Is there some work around for this - or should the syntax be changed, so as not to collide with this syntax / warning?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
palerdotcommented, Mar 16, 2019

@matttk This configuration is added in 0.5.0 version (to be released shortly). You can see live example - https://palerdot.in/react-d3-speedometer/?path=/story/react-d3-speedometer--custom-current-value-placeholder-style-for-eg-value

0reactions
matttkcommented, Jun 28, 2019

Sorry, I finally got around to checking into this and everything is working great in the latest version. Thanks! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-template-curly-in-string - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Why do I get an unexpected template string expression error?
This is an warning generated by ESLint: no-template-curly-in-string. Disallow template literal placeholder syntax in regular strings ...
Read more >
No-template-curly-in-string - ESLint - W3cubDocs
This rule aims to warn when a regular string contains what looks like a template literal placeholder. It will warn when it finds...
Read more >
False positive for 'no-template-curly-in-string' #14000 - GitHub
If ${...} is intentional in a string literal, you can use eslint-disable comments.
Read more >
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 >

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