Rule proposal: Disallow implicit string conversion in template literals #818
Labels
enhancement: new plugin rule
New rule request for eslint-plugin
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
TypeScript allows usage of any types in interpolations, which can lead to unexpected results:
This rule should disallow usage of any types, except primitives that are converted to expected values (strings, numbers and booleans).
There is the same proposal to tslint that also includes plus operands, but I'm not sure if there's need to include it in this rule, since it appears to be covered by restrict-plus-operands.
The text was updated successfully, but these errors were encountered: