-
Notifications
You must be signed in to change notification settings - Fork 34
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
match-exported support for HOC, aka enhancers, aka wrappers #22
Comments
As an alternative, you can use eslint-plugin-project-structure
ESLint plugin with rules to help you achieve a scalable, consistent, and well-structured project. Create your own framework! Define your folder structure, advanced naming conventions, file composition, and create independent modules. Take your project to the next level and save time by automating the review of key principles of a healthy project! project‑structure/folder‑structureEnforce rules on folder structure to keep your project consistent, orderly and well thought out.
|
I found that once the exported component is wrapped in a function like
connect()
(from redux connect) orcompose
(from recompose), the match-exported rule stops working.here's a code example:
I understand there's no easy way to solve this for every library out there,
but I'd propose improving exported name detection to at least support some common cases,
in general the pattern for enhacing components is that the exported name is the argument to the right-most function invocation.
The text was updated successfully, but these errors were encountered: