Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
`report squigglies ${
// do not underline this comment, or the ${ on the previous line.
"They only underline this string, from quote to quote."
// The autofix will strip out these comments and the ${ and }, so I think it should
// underline them as well, to call attention to the whole interpolation being
// the problem, not the inner expression itself.
}`
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/no-useless-template-literals": "error"
}
}
tsconfig
Expected Result
Expect error squigglies starting on the ${
and continuing all the way through the closing }
Actual Result
only the quoted string itself has squigglies
Additional Info
I was playing around with this, and it's a very easy change to make. Would be happy to toss up a PR.