-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add eslint plugin for checking imports #3976
Conversation
taking a stab at solving this with the no-internal-modules plugin. if that doesn't work then we can merge this. |
Doesn't work :( |
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.
LGTM
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.
LGTM
Type of change
Description of change
Added a custom eslint plugin to validate that imports are relative, that modules don't import other modules, and that only dependencies from a dependency whitelist can be included in src or modules files.
Related to #3964 and #3970