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

Fix Error when mapCallback is not an identifier or a function expression #418

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

ianobermiller
Copy link
Contributor

@ianobermiller ianobermiller commented Sep 12, 2023

If the first arg to map is not an Identifier or a function expression (arrow or regular) the check of params.length will throw.

We ran into this error with code almost identical to the test case I added. I'm looking to introduce this rule in our codebase and hoping we can get it fixed and published instead of having to fork it. Thanks for creating this plugin!

@freaktechnik
Copy link
Owner

Thanks a lot! I'll try to get a release out asap

@freaktechnik freaktechnik merged commit 43e4c0a into freaktechnik:main Sep 12, 2023
1 check passed
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.

2 participants