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.

ES6 Template Strings and no-unused-vars aren't (competely) compatible

See original GitHub issue
var who = "Paul";
module.exports = `Hello ${who}!`;

Linting that results in a warning that who is defined but never used. My human eyes can tell you that’s wrong but I’m not actually sure if esprima provides enough info to also tell us that.

This is using v0.11.0-alpha.0 and config using ES6.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
platinumazurecommented, Jul 19, 2016

@seemsindie @KeitIG Please stop by our Gitter chat if you need help with this. Thanks!

1reaction
nzakascommented, Feb 7, 2015

Working on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-unused-vars - 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 >
8. Template literals - Exploring JS
ES6 has two new kinds of literals: template literals and tagged template literals. ... non-standard and breaks compatibility with the rest of the...
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 >
Getting Literal With ES6 Template Strings - Chrome Developers
Substitution allows us to take any valid JavaScript expression (including say, the addition of variables) and inside a Template Literal, 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