Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
Reading the docs at face value, I would consider it a bug that the example
constuseless=`I am a useless template literal that could be converted to an ordinary string`;
is not flagged by no-useless-template-literal. (If it actually should be flagged, feel free to convert this to a bug!)
The way I understand it though, the rule as-is is really going after useless templateinterpolations. I think this strongly needs clarification in the docs.
Furthermore, I think that the quotes rule (https://typescript-eslint.io/rules/quotes/), whichcan be used to prohibit useless template literals, and the no-useless-template-literal rule docs ought to contain links to each other to help a user figure out which one to use, depending on what the goal is. (I'm currently setting this up at my day job and getting confused over which one to use 😆)
Affected URL(s)
https://typescript-eslint.io/rules/no-useless-template-literals/
https://typescript-eslint.io/rules/quotes/