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

Lint and format with Biome #87

Merged
merged 9 commits into from
Jul 11, 2024
Merged

Lint and format with Biome #87

merged 9 commits into from
Jul 11, 2024

Conversation

robintown
Copy link
Member

@robintown robintown commented Jul 9, 2024

Currently this project has no linter or formatter set up, but we could benefit from having one to help us avoid TypeScript's gotchas and not have to think about style choices too much. Normally, the tools of choice are Eslint and Prettier, but Prettier is a bit slow at its job, and Eslint invites a bit more fiddling with plugins than I'd like.

I've recently started using Biome for a personal project, and I like it a lot. It's fast and has a reasonable set of defaults, so I think it's well-suited for a project like this where we only need a lightweight solution to formatting and linting. I suggest we try it out!

Reviewable commit-by-commit.

@robintown robintown mentioned this pull request Jul 9, 2024
Copy link
Member

@jmartinesp jmartinesp 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!

@bmarty
Copy link
Member

bmarty commented Jul 10, 2024

Thanks for improving the quality of the project!

Maybe update the doc https://github.com/element-hq/compound-design-tokens/blob/main/docs/development.md to explain how to run the checks locally. It can be discovered by looking at the CI instructions at #88 but having an up to date documentation is always helpful.

@pixlwave
Copy link
Member

Very nice 👏

@robintown robintown merged commit 9e762d0 into main Jul 11, 2024
@robintown robintown deleted the lint branch July 11, 2024 19:15
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