-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[code-infra] Add plugin to check for index file access #46178
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
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-46178--material-ui.netlify.app/ Bundle size report |
Haven't reviewed the code yet, but should this be in public? We might benefit from it in X as well |
We will move all eslint config into mui-public eventually. I didn't create a full plugin, just added a rule to the existing material ui plugin. you'll be able to use this in X. |
Derp, I missed that totally 😆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one comment
const regexPattern = new RegExp( | ||
pattern | ||
.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') // Escape special regex chars except * | ||
.replace(/\*/g, '.*'), // Convert * to .* for wildcard matching | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit sketchy, don't we have a glob util we can use?
Guard against #46177
Created a custom plugin that works similar to the
no-unresolved-imports
, but that looks at the resolved specifier.