Open kirkwaiblinger opened 2 months ago
https://typescript-eslint.io/play/#ts=4.8.4&fileType=.tsx&code=C4TwDgpgBMELZgDYENYGVgCcCWA7A5gCrjQC8UABgGbIAkA3gOQqMC%2BVEiFA3EA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tiacTJTIAhtEK18iALbF4QifQAexaIMocm6KAHcRG8GAC%2BIA0A&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
type templateStringType = `fa${'la'}fel`;
module.exports = { "rules": { "@typescript-eslint/no-unnecessary-template-expression": "warn" } }
{ "compilerOptions": { "strictNullChecks": true } }
type templateStringType = `fa${'la'}fel'` // ~~~~ [no-unnecessary-template-expression]: Template literal expression is unnecessary and can be simplified.
No error
No response
🧆
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.8.4&fileType=.tsx&code=C4TwDgpgBMELZgDYENYGVgCcCWA7A5gCrjQC8UABgGbIAkA3gOQqMC%2BVEiFA3EA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tiacTJTIAhtEK18iALbF4QifQAexaIMocm6KAHcRG8GAC%2BIA0A&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
Actual Result
No error
Additional Info
No response