1.5.0 • Published 1 year ago

@ivangabriele/biome-config v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

My Biome Configuration

License GitHub Check Workflow Status NPM Version

My most commonly used Biome configuration.



Usage

Run:

yarn add -DE @biomejs/biome @ivangabriele/biome-config

Add this line to your biome.jsonc:

{
  "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
  "extends": ["@ivangabriele/biome-config"],
}

Then add this line to your package.json:

{
  "scripts": {
    "test:lint": "biome check --write --no-errors-on-unmatched ."
  }
}

Lint-Staged

Run:

yarn add -DE @ivangabriele/biome-config lint-staged

Then add this line to your package.json:

{
  "lint-staged": {
    "*.{cjs,cts,d.cts,d.mts,d.ts,js,json,jsonc,jsx,mjs,mts,ts,tson,tsx}": ["yarn test:lint"]
  }
}

IDEs

Visual Studio Code

Install Biome and Run On Save extensions.

.vscode/settings.json:

{
  "editor.defaultFormatter": "biomejs.biome",
  "[javascript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[json]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "emeraldwalk.runonsave": {
    "commands": [
      {
        "match": ".*",
        "cmd": "yarn test:lint"
      }
    ]
  }
}

Contribute

Please refer to the contribution guidelines for information on how to contribute to this project.


1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago