Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
8 checks passed
@mdjermanovic mdjermanovic deleted the global-return branch April 12, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants