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

chore(CI): Remove Biome in favour of prettier #15461

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Feb 20, 2025

We never fully migrated to Biome because it didn't support all the lints we required.

Because we still have to run eslint (and prettier for some files) so there are no real gains to running Biome too.

@timfish timfish marked this pull request as ready for review February 20, 2025 19:05
@timfish timfish requested a review from a team as a code owner February 20, 2025 19:05
@timfish timfish requested a review from AbhiPrasad February 20, 2025 19:05
@AbhiPrasad
Copy link
Member

Don't we have to re-enable some eslint rules?

@timfish
Copy link
Collaborator Author

timfish commented Feb 20, 2025

The eslint config hasn't been touched much in years.

The thing that is missing is calling prettier in all the packages!

@timfish timfish marked this pull request as draft February 20, 2025 19:15
@timfish
Copy link
Collaborator Author

timfish commented Feb 20, 2025

Ok, prettier is re-enabled for TypeScript and JavaScript.

Rather than run it for each package individually which is quite slow, it follows how Biome worked and runs against the entire repository at once which is much faster.

Unfortunatly, prettier and Biome aren't identical in how they handle formatting so there are some changes to files. It seems that prettier more forcefully collapses things when they would have fitted all on one line.

This doesn't yet enable formatting for svelte, vue, and astro files but that can be enabled later.

@timfish timfish marked this pull request as ready for review February 20, 2025 19:56
@timfish timfish marked this pull request as draft February 20, 2025 20:04
@timfish timfish marked this pull request as ready for review February 20, 2025 20:40
@timfish timfish changed the title chore(CI): Remove Biome chore(CI): Remove Biome in favour of prettier Feb 20, 2025
Copy link
Member

@chargome chargome left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Tim!

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Thanks Tim!

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.

4 participants