-
I can't really tell which one to choose over the other. Could you put a comparison of the linter and formatter on the website? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Oxc doesn't have a formatter yet. Give both a try and see which one fits your requirements. From my point of view, Biome excels in every aspect at the moment. |
Beta Was this translation helpful? Give feedback.
-
Biome and OXC are relatively close because OXC is inspired by Rome Tools (now Biome). However, they have some differences. Please take my description with a pinch of salt, because I am part of the Biome team. GoalsOXC aims to provide a suite of tools for JavaScript, TypeScript and JSX. It already provides a linter and is working on a formatter and a transpiler. Biome aims to provide a suite of tools for all major web languages with first-class editor support. We currently support JavaScript, TypeScript, JSX and JSON. We are working on CSS support. Biome already provides a linter and a Prettier-compatible formatter. We aim to support a transpiler in the long term. FormatterBiome provides a production-ready formatter that scores 97% compatibility with Prettier. It supports JavaScript, TypeScript, JSX, and JSON. Most of the options of Prettier are available. If you want a fast Prettier replacement, Biome is the only choice here. LinterOXC attempts to provide a near drop-in replacement for ESLint and some ESLint plugins. It implements ESLInt rules as closely as possible (supporting rules' options). Biome also provides most of the ESLint rules and some ESLint rules from plugins. However, it's not intended to be a drop-in replacement. This means that Biome has changed some rule names, doesn't support most of the rules' options, and sometimes implements slightly different behavior. So Biome and OXC are pretty close here. OXC has the advantage of familiarity because it closely mimics ESLint. Biome is trying to provide a new linter experience. PerformanceBiome and OXC are both performant for most of the projects. For very large projects, I think that OXC is faster than Biome because it is designed from the ground up for performance. In addition, OXC has made different technology choices that also allow for performance gains (see next section). Editor supportsBiome and OXC both offer LSP support. However, Biome offers more options and is able to format and lint malformed code. This is one of Biome's main goals. This advantage is due to Biome's technological choices. Biome uses a CST (Concrete Syntax Tree) and an error-resilient parser, whereas OXC uses an AST (Abstract Syntax Tree). The choice of an AST instead of a CST is one of the raisons d'être of OXC. If I remember correctly, @Boshen preferred an AST because of its simplicity. |
Beta Was this translation helpful? Give feedback.
-
i need eslint-plugin-biome-oxlint or oxlint-plugin-biome |
Beta Was this translation helpful? Give feedback.
Biome and OXC are relatively close because OXC is inspired by Rome Tools (now Biome). However, they have some differences. Please take my description with a pinch of salt, because I am part of the Biome team.
Goals
OXC aims to provide a suite of tools for JavaScript, TypeScript and JSX. It already provides a linter and is working on a formatter and a transpiler.
Biome aims to provide a suite of tools for all major web languages with first-class editor support. We currently support JavaScript, TypeScript, JSX and JSON. We are working on CSS support. Biome already provides a linter and a Prettier-compatible formatter. We aim to support a transpiler in the long term.
Formatter
Biome provides…