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

Add sort imports linter #2493

Draft
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

anderson-oki
Copy link
Collaborator

@anderson-oki anderson-oki commented May 9, 2024

Description

The amount of files changed are big, but they are simply automatically sorting the imports. Automatically sorting and grouping the imports increases the development experience when organizing the imports and makes easier to analyze the build size when looking at the packages import.

Manually sorting is boring, and not having a pattern is not ideal. Added a very well maintained library as plugin "simple-import-sort", that works out of the box with eslint and allow us to create custom grouping.

It's open for discussion but I personally prefer:

  • React Packages
  • Mantine
  • Internal Packages
  • Relative Imports
  • Style Imports

This will conflict with #2465. Let's not merge until Mantine PR is merged.

@anderson-oki anderson-oki marked this pull request as draft May 9, 2024 14:23
@anderson-oki anderson-oki self-assigned this May 24, 2024
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.

None yet

1 participant