-
Notifications
You must be signed in to change notification settings - Fork 2.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Support Biome as formatter #21045
Comments
How to use biome in nx monorepo? |
@vaibhavdugar, I have a repo for this https://github.com/guillempuche/nx-expo-next-tamagui/blob/main/biome.json I still need to run lint for all the files (as @JamesHenry pointed guillempuche/nx-expo-next-tamagui#1), but when coding a file on VSCode, it works. |
@guillempuche in your repo as well biome is not configured with nx, I see that you are also using ESLint with nx, do you have any idea how can we use biome instead of ESLint in nx.json? |
There aren't Eslint nor Prettier dependencies in the root package.json. It's all Biome. I don't use Nx target lint (I should delete this). Instead, you can format the code via the script in package.json. There's also a pre-commit Husky script. |
Thanks, can you tell me how to run the biome command for linting to catch all the errors? |
Two ways: a) |
We just updated our lint target as follows:
|
We use https://nx.dev/features/enforce-module-boundaries. I guess we'll wait until nx officially supports biome. |
Biome has also a issue about monorepos: biomejs/biome#2228 aiming to support a root configuration that is extendable per project. |
Hello friends, I am working on this project https://github.com/GitOpsLovers/nx-biome to create a plugin to implement Biome as linter, executor and generator in NX. Who wants to participate is welcome! |
@mcfdez , how does it support child |
The idea is that the plugin configuration generator will create a biome.json in the project that you tell it and also creates a biome.json in the workspace root. In the biome.js of the project, an extend will be made. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Description
Biome (previously Rome) made some news by reaching 97% compatibility with Prettier.
A lot of rules from major plugins are already supported.
Motivation
It would be beneficial performance-wise.
And by making the formatter plugable it would make nx even more future-proof.
Suggested Implementation
official biome support with:
Alternate Implementations
The text was updated successfully, but these errors were encountered: