Bug: [no-useless-template-literals] Comments are removed by auto-fix #8609
Labels
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for team members to take a look
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=AYQwJA3g9AVABAIzjKcDkBjNdZwCbJQC%2BApsANxA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tmUSWWS18iALbF4AQ2G1Gw6BPioMkRNGgdokcGAC%2BIHUA&tsconfig=&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
The fix result should be... well, I'm not sure what. Maybe the comments should be moved to before the string?:
Actual Result
Additional Info
This is a common thing to look out for in rule reviews. Ref: #8549
The text was updated successfully, but these errors were encountered: