@zhaoworks/biome

1.0.2 • Public • Published

Biome

Biome or biomejs is a modern toolchain in the JavaScript ecosystem, compared to eslint and prettier. We choose it because it's fast, simple and has everything we need together (formatting and linting).

How to setup biomejs

Install biome and zhaoworks biome config

bun add @biomejs/biome @zhaoworks/biome -D

Create a biome.json file and paste the following content

{
  "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
  "extends": ["@zhaoworks/biome"]
}

You should use the latest biome json $schema.

How to use

Using the CLI, there are three commands

# only runs the formatter
bun biome format --write ./path/to/execute

# only runs the linter
bun biome lint --write ./path

# runs both linter and formatter
bun biome check --write ./path

Formatter

Basic options

  • Indent size: 2

The main JavaScript options

  • Semicolons: always
  • Quote style: single
  • JSX quote style: double

Linter rules

Biome has a few categories of linting rules which you can see at the linter rules page.

We are using the recommended rules and some others that are listed below.

All the rules below are set to error.

Complexity

Correctness

Style

Suspicious

Readme

Keywords

none

Package Sidebar

Install

npm i @zhaoworks/biome

Weekly Downloads

9

Version

1.0.2

License

none

Unpacked Size

3.96 kB

Total Files

3

Last publish

Collaborators

  • kauefraga
  • 7wf
  • zhaocode