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

Storybook: remove React barrel imports #2905

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

SebiVPS
Copy link
Contributor

@SebiVPS SebiVPS commented Dec 10, 2024

Use named imports instead of barrel importing React. Doing so will result in less code and better readability. The new React docs also use named imports and never import React itself.

To avoid conflicts, we temporarily add the eslint rules in the packages on main. The restrict-import rule will be added in the v8 (next) branch in the eslint-config package, then they will be removed there again.

@SebiVPS SebiVPS requested a review from johnnyomair December 10, 2024 07:54
@SebiVPS SebiVPS self-assigned this Dec 10, 2024
@SebiVPS SebiVPS changed the title storybook: remove react barrel imports from storybook: remove react barrel imports Dec 10, 2024
@johnnyomair johnnyomair changed the title storybook: remove react barrel imports Storybook: remove React barrel imports Dec 10, 2024
@johnnyomair johnnyomair merged commit 9b8f157 into main Dec 10, 2024
11 checks passed
@johnnyomair johnnyomair deleted the remove-react-barrel-imports-storybook branch December 10, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants