-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Apply natural import order for JS to synchronise the code base with Biome and its configuration #2423
Conversation
📊 Packages dist files size differenceℹ️ No difference in dist packagesFiles. |
ebe55c7
to
d00d876
Compare
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.
Seems nice, but by curiosity I don't see any changes about Biome.js changes, did you forgot to commit something? :)
Hey @Kocal, I didn't edit the conf (I play with it on my side :p ) I exposed the fact I discovered the tool, I follow the contributing guideline, and I thinked about the rule to sort import has not been discussed / seen / treated before. So I pointed out the fact if we apply to the code base a global check then fix with actual rules of Biome config, we will apply (like in this PR) a lot of changed. If we keep Biome and its conf as is, ok, the PR is good, and the code base is synchronized with Biome conf...that's it! |
d4f7315
to
1ae34f2
Compare
60c291a
to
89d499f
Compare
… with Biome and its configuration
89d499f
to
331a409
Compare
Yeah configuring how imports are sorted is nice, not doing it is sometimes a waste of time in some projects/teams when reviewing the code, but AFAIK it didn't happen in Symfony UX. Can you please commit the new Biome.js configuration, so we can merge your PR? :) Thanks! |
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.
Putting a guard, waiting for Biome.js configuration to be updated 🙏🏻
@Kocal I did not change it, it is the default config, I just call |
@chadyred Ah!
Alright, I thought it was the opposite, and expected to see Biome configuration (or commands) to be updated to enable imports sortings. However, you used You know, let's iterate, I'm merging this and will open a new PR for Thanks @chadyred :) |
Thank you @chadyred. |
You are welcome, thanks for your time @Kocal 🍏 |
…mands, replace them with check and ci commands (Kocal) This PR was merged into the 2.x branch. Discussion ---------- [Meta] Drop format, lint, check-format and check-lint commands, replace them with check and ci commands | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Following #2423 (comment). When I've migrated from ESLint and Prettier to Biome.js, I kept commands `yarn lint`, `yarn format` (and `yarn check-`) for historical and simplicity reasons, because it was two separate tools. _Now_ that we use a single tool, we can use its two dedicated commands: - [`biome check`](https://biomejs.dev/reference/cli/#biome-check), like `biome format + biome lint + imports sorting` - [`biome ci`](https://biomejs.dev/reference/cli/#biome-ci), for the CI (it does not write files) <img width="1116" alt="image" src="https://github.com/user-attachments/assets/ea3481f8-308a-4a8a-a47f-53692c0a3488"> cc `@chadyred` Commits ------- 36d04ff [Meta] Drop format, lint, check-format and check-lint commands, replace them with check and ci commands
Hello,
Biome
sounds really good 🧑🔬 , it seems to be a really cool tool, guys !It applies a rule for ordering import "naturally" (https://biomejs.dev/analyzer/import-sorting/) so, I apply the command to check and fix
What about apply it "as is" ? Another alternative will be to disabled the rule. What do you think about that detail ?
Maybe, an import needs of a package just above, from another package import, this is what I propose also to disable the rule, WYT ?
Thanks ^^