# @exile-watch/biome-config

<figure><img src="https://694473604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOzA1rSlMPE3i2X5tlqgu%2Fuploads%2FZCdzczA729HO2CsFnhUE%2Fimage.png?alt=media&#x26;token=3373666c-de2d-4ae5-985d-8c0be1fbeadd" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

## About [`@exile-watch/biome-config`](https://github.com/exile-watch/splinters/tree/main/packages/biome-config)

This package contains shared Biome configuration and Biome dependency (including it's binary).

## About Biome

[Biome](https://biomejs.dev/) is a fast formatter and a performant linter.

## Usage

1. Install the package as a `devDependency`:

```bash
npm i -D @exile-watch/biome-config
```

***

2. Add/update following `scripts` properties in repo's root `package.json`:

<pre class="language-jsonp"><code class="lang-jsonp">// {root}/package.json
{
  // ...
  "scripts": {
    // ...
    "lint": "npx @biomejs/biome check .",
<strong>    "lint:apply": "npx @biomejs/biome check --apply .",
</strong>    "format": "npx @biomejs/biome format --write ."
  }
}
</code></pre>

***

3. Create `biome.json` with following content:

```jsonp
// {root}/biome.json
{
  "extends": ["@exile-watch/biome-config"]
}
```
