0.0.4 • Published 12 months ago

@diegopluna/biome-config v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@diegopluna/biome-config

Usage

Installation

npm install -D @diegopluna/biome-config

Configuration

Add the following to your biome.json file:

If it's a Node.js project:

// <project-root>/biome.json
{
   "extends": ["@diegopluna/biome-config/node"]
}

If it's a React project:

// <project-root>/biome.json
{
   "extends": ["@diegopluna/biome-config/react"]
}

Scripts

Add the following to your package.json file:

{
  "scripts": {
    "lint": "biome lint .",
    "lint:fix": "biome lint . --apply"
  }
}

VSCode Configuration

  1. Install the Biome extension for VSCode.
  2. Create a .vscode/settings.json file in your project with the following content:
{
  // ...
  "editor.defaultFormatter": "biomejs.biome",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "quickfix.biome": "explicit",
    "source.organizeImportes.biome": "explicit"
  },
  // ...
}
0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago