-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
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.
LGTM, thanks!
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. |
Very nice 👏 |
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.