-
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 with non-default exports #47
Comments
I'm looking for this also |
+1 Also trying to figure out a way to enforce this. I'd prefer to be able to use the |
+1 |
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.
|
Our company enforces the 'no-default-export' rule across the codebase.
So while there is a single export from every file, it is a non-default named export.
Is there any way to use or adapt this library to check filename against non-default export?
I imagine expanding the match-exported rule applicability to files with exactly one non-default named export, continuing to ignore files that have multiple non-default exports.
If needed, to avoid breaking changes, this could be done as a configuration switch in the rule.
The text was updated successfully, but these errors were encountered: