Bug: [no-useless-template-literals] Nested template literals contain useless one #8584
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.3.3&fileType=.ts&code=MYewdgzgLgBGCuBbGBeGBGA3AKAAYEMASAb1wCMSFEBfM3a-XTIA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tmUSWWS18iALbF4AQ2G1Gw6BPioMkRNGgdokcGAC%2BIHUA&tsconfig=&tokens=false
Repro Code
ESLint Config
tsconfig
No response
Expected Result
Should report and support autofix by removing the unnecessary template literals:
`ab${num}ba`
Actual Result
`a${`b${num}b`}a`
Additional Info
See #8575 (comment).
The valid case in that PR needs to be adjusted if it is merged.
The text was updated successfully, but these errors were encountered: