-
-
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 |
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.
Looks good, just add a couple of periods, then I approve docs and news.
Out of curiosity, did you do all this manually or with a tool that finds barrel imports and replaces them? This is a huge amount of changes!
Co-authored-by: Steve Piercy <[email protected]>
@stevepiercy All manually :) I figured that I would have had a lot of 30 to 60 minutes slots during the conf sprint, the following day, the flights and the long layovers, so this task would have been a good fit |
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.
Docs and news approved. Still needs tech review.
Closes #6507