-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
Removed all imports from barrel files for components, actions, helpers, hooks and lodash #6509
base: main
Are you sure you want to change the base?
Conversation
…s, hooks and lodash
✅ Deploy Preview for plone-components canceled.
|
"import/named": "error", | ||
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".jsx"] }], | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"name": "@plone/volto/components", | ||
"message": "Importing from barrel files is not allowed. Please use direct imports of the modules instead." | ||
}, | ||
{ | ||
"name": "@plone/volto/helpers", | ||
"message": "Importing from barrel files is not allowed. Please use direct imports of the modules instead." | ||
}, | ||
{ | ||
"name": "@plone/volto/actions", | ||
"message": "Importing from barrel files is not allowed. Please use direct imports of the modules instead." | ||
} | ||
], |
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.
@sneridagh this eslint setup for some reason still doesn't work in the editor for me so I could properly try this.
@stevepiercy I realized the deprecation docs for this already existed, I added a couple extra files I cleaned up. |
FYI: this PR also reduces the main |
Closes #6507