menu
no-unnecessary-template-expression
Disallow template expressions without text or conversion
A template containing only one interpolation returns that value unchanged when checking proves no conversion is required. Instead, you SHOULD use the interpolated value directly.
Reported
1function identity(value: string): string {2 return `${value}`;3}Accepted
1function identity(value: string): string {2 return value;3}