-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginrefactorPRs that refactor code onlyPRs that refactor code only
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read the FAQ and my problem is not listed.
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Link to the rule's documentation
https://typescript-eslint.io/rules/no-mixed-enums
Description
I'd added this TODO a year ago but never filed an issue for it:
typescript-eslint/packages/eslint-plugin/src/rules/no-mixed-enums.ts
Lines 164 to 170 in 2373a63
// TODO: We don't need to dip into the TypeScript type checker here! | |
// Merged namespaces must all exist in the same file. | |
// We could instead compare this file's nodes to find the merges. | |
const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.id); | |
const declarations = typeChecker | |
.getSymbolAtLocation(tsNode)! | |
.getDeclarations()!; |
Additional Info
Marking as refactor
rather than enhancement
or performance
as it likely won't noticeably improve rule performance in 99.9% of cases.
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginrefactorPRs that refactor code onlyPRs that refactor code only