no-template-curly-in-string for currentValueText
See original GitHub issueWhen 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:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top 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 >
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
@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-valueSorry, I finally got around to checking into this and everything is working great in the latest version. Thanks! 👍