Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

biome

БесплатноБез исполняемых скриптовНе проверен

Biome linter and formatter for JavaScript/TypeScript. Covers configuration, rules, and integration patterns. Replaces ESLint + Prettier for faster development…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Biome Configuration

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: biome for comprehensive documentation.

When NOT to Use This Skill

This skill is specific to Biome tooling. Do NOT use for:

  • ESLint configuration - Biome replaces ESLint; migrate or use ESLint skills
  • Prettier configuration - Biome replaces Prettier; migrate or use Prettier docs
  • TypeScript type checking - Use tsc, not Biome (Biome doesn't type check)
  • Build process - Use bundler skills (Vite, Webpack, etc.)
  • Testing setup - Use testing framework skills (Vitest, Jest, etc.)
  • Code quality principles - Use clean-code skill for what to fix, not how to configure

Anti-Patterns

Anti-Pattern Why It's Bad Biome Best Practice
Disabling recommended rules Misses important issues Keep recommended, customize only what's needed
Ignoring all warnings Warnings indicate real issues Fix warnings or suppress with reason
No CI integration Issues slip through Use biome ci in CI pipeline
Manual formatting Inconsistent, waste time Use format on save + pre-commit hooks
Mixing ESLint + Biome Conflicting rules, confusion Fully migrate to Biome or stay with ESLint
No VS Code integration Manual CLI runs Install Biome extension, enable format on save
Ignoring complexity rules Allows unmaintainable code Set cognitive complexity limits
Committing formatting issues Messy diffs Use pre-commit hooks with lint-staged

Quick Troubleshooting

Issue Check Solution
Biome not formatting VS Code extension installed? Install biomejs.biome, set as default formatter
Format on save not working Settings.json configured? Add "editor.formatOnSave": true
Rules not applying biome.json syntax valid? Run biome check to validate config
Too many warnings Rules too strict? Adjust severity levels or disable specific rules
CI failing Different results locally? Ensure same Biome version, check ignore patterns
Conflicts with Prettier Both running? Remove Prettier, Biome replaces it
Slow on large codebase Checking too many files? Add ignore patterns in biome.json
Can't migrate from ESLint Complex config? Use biome migrate eslint, review output

Installation

npm install --save-dev @biomejs/biome

# Initialize configuration
npx @biomejs/biome init

biome.json Configuration

{
  "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
  "organizeImports": {
    "enabled": true
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true,
      "complexity": {
        "noExcessiveCognitiveComplexity": {
          "level": "warn",
          "options": {
            "maxAllowedComplexity": 15
          }
        }
      },
      "correctness": {
        "noUnusedVariables": "warn",
        "noUnusedImports": "warn",
        "useExhaustiveDependencies": "warn"
      },
      "style": {
        "noNonNullAssertion": "off",
        "useImportType": "warn"
      },
      "suspicious": {
        "noExplicitAny": "warn"
      }
    }
  },
  "formatter": {
    "enabled": true,
    "formatWithErrors": false,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },
  "javascript": {
    "formatter": {
      "quoteStyle": "single",
      "trailingCommas": "es5",
      "semicolons": "always"
    }
  },
  "files": {
    "ignore": [
      "node_modules",
      "dist",
      "build",
      ".next",
      "coverage",
      "*.gen.ts"
    ]
  }
}

Package.json Scripts

{
  "scripts": {
    "lint": "biome check .",
    "lint:fix": "biome check --write .",
    "format": "biome format --write .",
    "check": "biome check --write --unsafe ."
  }
}

Common Rules

Rule Level Description
noUnusedVariables warn Flag unused variables
noUnusedImports warn Flag unused imports
noExplicitAny warn Discourage any type
useExhaustiveDependencies warn Check React hook deps
noNonNullAssertion off Allow ! operator
useImportType warn Prefer import type

VS Code Integration

// .vscode/settings.json
{
  "editor.defaultFormatter": "biomejs.biome",
  "editor.formatOnSave": true,
  "[javascript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  }
}

Pre-commit Hook

# Install husky
npm install --save-dev husky lint-staged

# package.json
{
  "lint-staged": {
    "*.{js,jsx,ts,tsx}": [
      "biome check --write --no-errors-on-unmatched"
    ]
  }
}

Migration from ESLint/Prettier

# Biome
Полный SKILL.md на GitHub

Установить biome в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Write
Edit

Вложенные файлы

quick-ref/configuration.mdquick-ref/migration.md

FAQ

Что делает скилл biome?

Biome linter and formatter for JavaScript/TypeScript. Covers configuration, rules, and integration patterns. Replaces ESLint + Prettier for faster development experience. USE WHEN: user mentions "biome", "linting", "formatting", "code style", "biome.json", asks about "setup linter", "format code", "migrate from ESLint", "migrate from Prettier", "biome rules", "biome configuration" DO NOT USE FOR: ESLint configuration - Biome is an ESLint replacement, Prettier configuration - Biome is a Prettier replacement, TypeScript compilation - use TypeScript compiler, Code quality principles - use `clean-code` skill

Как установить скилл biome?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл biome запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить biome с