tjx666 / biome-config

config for biomejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@yutengjing/biome-config

Install

pnpm install -D @yutengjing/biome-config

[!NOTE] > @biomejs/biome is the peerDependencies

Config

Add to biome.json

{
  "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
  "extends": ["./node_modules/@yutengjing/biome-config/biome.json"]
}

VSCode settings

Add following to .vscode/settings.json:

{
  "[javascript][javascriptreact][typescript][typescriptreact][json][jsonc]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "editor.codeActionsOnSave": {
    "quickfix.biome": "explicit",
    "source.organizeImports.biome": "explicit"
  }
}

Note

Ensure you had already installed biome VSCode extension

Related

About

config for biomejs