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

Change the base config's import/order rule so the unknown import type now fills the last import group slot #14

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

mangs
Copy link
Contributor

@mangs mangs commented Jan 11, 2024

Pull Request Checklist

Changes Included

  • Version bump to 1.2.1
  • Change the base config's import/order rule so the unknown import type now fills the last import group slot

@mangs mangs requested a review from jduthon as a code owner January 11, 2024 22:39
…type now fills the last import group slot
@mangs mangs changed the title Change the base config's import/order rule so the unknown import type is last Change the base config's import/order rule so the unknown import type now fills the last import group slot Jan 11, 2024
Copy link
Contributor Author

@mangs mangs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes for context:

@@ -39,9 +39,10 @@
{
"groups": [
["builtin", "external"],
["internal", "unknown", "parent", "sibling", "index"],
["index", "internal", "parent", "sibling"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put these in alphabetical order so it's easier to read them from left to right

["type"],
["object"]
["object"],
["unknown"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation for the order rule added examples of all group types except for unknown, so now that it's clear what each group type does, rather than have unknown mixed into the Internal Imports group, move it to its own group. Skimming through the ESLint plugin code doesn't reveal any obvious details either.

Copy link

@jduthon jduthon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mangs mangs merged commit 4068ef0 into babbel:main Jan 12, 2024
1 check passed
@mangs mangs deleted the tweak-import-groups branch January 12, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants