Bug: [switch-exhaustiveness-check] Enum cases are not properly qualified in fixer #7747
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.9.3&showAST=es&fileType=.tsx&code=HYQwtgpgzgDiDGEAEBBJBvAUEpEAeMA9gE4AuuwArmEgEIbY5IDCANIzgCLs4C%2Bm-TABMI8ADYhiyeIWBRyIAFyoAdLUyYoAdwCWpeAAskAChABKBjnggoyFGpXNlWJkgBGUkAGtG-XkA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6ZAd0vzIAt6AHrwCGsZPkoA3RExTJafRGQDW6KImjQA9tEjgwAXxAGgA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
No response
Expected Result
Actual Result
Additional Info
In the actual codebase, the enum is namespaced under an ESM
import *
, rather than a TypeScriptnamespace
. However, I think both cases should be fixed by any potential PR that fixes thisThe text was updated successfully, but these errors were encountered: