Skip to content

Place static arrow function body outside of scope on static declaration check (#275) #276

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

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

arkener
Copy link
Contributor

@arkener arkener commented Aug 16, 2022

Provides a fix for #275, adding the following:

  • Places the static arrow function body outside of scope on static declaration checks.
  • Added a tests for used and unused variable usage on static arrow functions.

Fixes #275

@sirbrillig
Copy link
Owner

Looks great. Thank you!

@sirbrillig sirbrillig merged commit ad2b0b5 into sirbrillig:2.x Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect warning for arguments are thrown on static arrow functions
2 participants