biome
БесплатноБез исполняемых скриптовНе проверенConfigure BiomeJS for projects - linting, formatting, and code style setup. Use when the user asks to set up biome, configure linting or formatting, migrate…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
BiomeJS Configuration
Set up and configure BiomeJS for linting, formatting, and code style enforcement.
Version Discovery
Always discover the latest version before doing anything. Never hardcode a biome version.
npm view @biomejs/biome version
Use the discovered version for:
- Installing:
npm install --save-dev --save-exact @biomejs/biome@<version> - Schema URL:
https://biomejs.dev/schemas/<version>/schema.json
New Project Setup
- Discover the latest version (see above)
- Install biome:
npm install --save-dev --save-exact @biomejs/biome@<version> - Create
biome.jsonat the project root using the baseline configuration below - Add package.json scripts (see Scripts section)
- Verify with
npx biome check .
Migration / Upgrade
When a project already has biome configured:
- Discover the latest version
- Update the dependency:
npm install --save-dev --save-exact @biomejs/biome@<version> - Update the
$schemaURL inbiome.jsonto match the new version - Run
npx biome check .to verify nothing breaks - Review and modernize the config — only override what differs from biome's defaults
Baseline Configuration
Use this as the starting point for all projects. Adapt based on project context (see Adaptive Rules below).
{
"$schema": "https://biomejs.dev/schemas/<version>/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always"
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noExcessiveCognitiveComplexity": "warn"
},
"correctness": {
"noUnusedImports": "error",
"noUnusedVariables": "warn",
"useArrayLiterals": "error"
},
"style": {
"noDefaultExport": "error",
"noCommonJs": "error",
"noNamespaceImport": "warn",
"useFilenamingConvention": {
"level": "error",
"options": {
"strictCase": true,
"filenameCases": ["camelCase", "kebab-case"]
}
}
},
"suspicious": {
"noConsole": "warn"
}
}
},
"css": {
"linter": {
"enabled": true
},
"formatter": {
"enabled": true,
"quoteStyle": "single"
}
},
"organizeImports": {
"enabled": true
}
}
Adaptive Rules
Adjust the baseline based on what you detect in the project:
No CSS in project
If there are no CSS, SCSS, or similar files, remove the css section entirely.
Next.js / Remix / Astro / SvelteKit
These frameworks require default exports for pages and routes. Disable the rule or scope it:
"style": {
"noDefaultExport": "off"
}
Or use overrides to allow default exports only in route files:
"overrides": [
{
"includes": ["src/app/**", "src/pages/**", "app/**", "pages/**"],
"linter": {
"rules": {
"style": {
"noDefaultExport": "off"
}
}
}
}
]
CommonJS projects
If the project uses "type": "commonjs" or lacks "type": "module" in package.json and uses require():
"style": {
"noCommonJs": "off"
}
Tailwind CSS
No special biome config needed — Tailwind works with biome out of the box. Just ensure CSS linting is enabled if the project has CSS files.
Monorepo
Place biome.json at the workspace root. Use overrides for package-specific rules if needed.
Test files
Allow noConsole in test files:
"overrides": [
{
"includes": ["**/*.test.*", "**/*.spec.*", "**/__tests__/**"],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
}
]
Package.json Scripts
Add these scripts to the project's package.json:
{
"scripts": {
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write ."
}
}
Verification
After setup, always verify:
npx biome check .
If there are many existing violations, consider using --write to auto-fix what biome can:
npx biome check --write .
For remaining issues that can't be auto-fixed, either fix them or adjust rules as appropriate for the project.
Установить biome в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(npm:*, npx:*)Вложенные файлы
FAQ
Что делает скилл biome?
Configure BiomeJS for projects - linting, formatting, and code style setup. Use when the user asks to set up biome, configure linting or formatting, migrate from eslint or prettier, enforce code style, or add biome to a project.
Как установить скилл biome?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл biome запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic