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: don't lint connect() of not redux #103

Merged
merged 2 commits into from
Mar 16, 2025

Conversation

koooge
Copy link
Contributor

@koooge koooge commented Mar 10, 2025

Hi there, react-redux/connect-prefer-named-arguments rule checks connect() of not redux's currently. It should check only redux's connect().

@DianaSuvorova
Copy link
Owner

This looks great! thank you!

Did you add any negative test case? Ie to make sure the check is skipped if connect is imported from somewhere else?
Also will it work properly with commonjs import? could you add a test with require('react-redux') ?

@koooge
Copy link
Contributor Author

koooge commented Mar 15, 2025

Thanks for the feedback. Fixed cjs in 6cefe31

@DianaSuvorova
Copy link
Owner

Looks great! Thank you!

@DianaSuvorova DianaSuvorova merged commit 55b9b31 into DianaSuvorova:master Mar 16, 2025
4 checks passed
Copy link

🎉 This PR is included in version 4.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@koooge koooge deleted the connect_not_redux branch March 17, 2025 19:43
koooge added a commit to koooge/eslint-plugin-react-redux that referenced this pull request Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants