no-unnecessary-template-expression
Configuration
rslint.config.ts
Rule Details
Disallow unnecessary template expressions.
Template literals that contain only a single string variable or simple literal values can be simplified. If a template literal contains a single interpolation with a string-typed expression and nothing else, the template wrapper is unnecessary.
Examples of incorrect code for this rule:
Examples of correct code for this rule: