Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

feat: Add isGlobalReturn method on scopeManager #96

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Apr 11, 2023

Renames the private __isNodejsScope to isGlobalReturn to formally make it part of the interface and available in ESLint.

I chose isGlobalReturn instead of isNodejsScope because the typescript-eslint scope manager already exposes a method called isGlobalReturn, so copying that would ensure that the most popular alternative scope manager already has the same method.

Refs eslint/eslint#16999

Renames the private __isNodejsScope to isGlobalReturn to formally make
it part of the interface and available in ESLint.

Refs eslint/eslint#16999
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 70c8db1 into main Apr 12, 2023
@mdjermanovic mdjermanovic deleted the global-return branch April 12, 2023 21:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants