Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
enum Enum1 {
One = 'ONE',
}
enum Enum2 {
Two = 'TWO',
}
type OneOrTwoGood = `${Enum1 | Enum2}`;
const oneOrTwoGood: OneOrTwoGood = 'ONE';
type OneOrTwoBad = Enum1 | Enum2;
const oneOrTwoBad: OneOrTwoBad = "TWO";
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/no-unnecessary-template-expression": "warn"
}
}
tsconfig
Expected Result
I expect that the type OneOrTwoGood
should not report.
Actual Result
the type OneOrTwoGood
does report, and fixes to OneOrTwoBad
, which is not the same.
Additional Info
No response