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

[code-infra] Allow to customize what is considered as a component file #41950

Closed
wants to merge 2 commits into from

Conversation

alexfauquette
Copy link
Member

I realized my components ChartsXAxis and ChartsYAxis was not considered as component because they have two capital letters one after the other.

A solution could be to do the following update on the regexp, but not sure every body would like it, so I'm adding a setting option

- ^(Unstable_)?([A-Z][a-z]+)+2?\.(js|tsx)
+ ^(Unstable_)?([A-Z][a-z]*)+2?\.(js|tsx)

@alexfauquette alexfauquette added the scope: code-infra Specific to the core-infra product label Apr 18, 2024
@mui-bot
Copy link

mui-bot commented Apr 18, 2024

Netlify deploy preview

https://deploy-preview-41950--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against b3a4f26

@michaldudak
Copy link
Member

Let's test the new regex in our repos and see if it works. I don't think a config option is necessary in this case. It will only add noise.

@alexfauquette
Copy link
Member Author

Ok, I created #42004 for that. on MUI-X it does not create an issue, and I don't think toolpad uses docs:api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants