Automated summary
This skill documents how to install, configure, and use Biome to format, lint, and sort imports in JavaScript and TypeScript projects.
Strengths
- Covers installation, a full biome.json example, CLI commands, migration from ESLint/Prettier, and CI or pre-commit integration.
- Explains Biome 2.x configuration changes such as assist actions, files.includes, and rules.preset.
- Provides concrete commands for formatting, linting, safe or unsafe fixes, and checking staged files.
- Notes the limitation around ESLint plugins and the importance of pinning the Biome version.
Limitations
- The ESLint/Prettier migration section is incomplete: the content stops mid-command.
- Compatibility with ESLint plugins is only briefly addressed, although it can be a blocker for some projects.
- Rule names and the configuration schema change between versions, requiring regular migrations.
Use it when adopting Biome, replacing ESLint and Prettier, setting up biome.json, or adding lint and format checks to CI or a pre-commit hook.
Avoid it if the project relies heavily on specific ESLint plugins or needs a complete, detailed migration guide.
Security analysis
SafePure documentation/instruction content for a well-known open-source developer tool. It contains CLI commands (npm install, npx biome check/migrate) that are non-destructive, local, and explicitly recommends reviewing diffs for unsafe fixes. No credential handling, network exfiltration, obfuscated payloads, sudo/rm -rf, or attempts to override the agent's instructions. No tools are declared, so nothing is auto-executed beyond what a user asks for.
No concerns found
How this analysis is madeExamples
Set up Biome in this TypeScript project, create a biome.json, and replace our ESLint and Prettier scripts with Biome lint and format commands.Migrate our existing .prettierrc and .prettierignore to Biome, then update the config for Biome 2.x import sorting and recommended rules.Add `biome ci` to our GitHub Actions workflow and configure a pre-commit hook that runs `biome check --staged`.name: biome description: >- Biome is a single Rust-based tool that formats code and lints JavaScript, TypeScript, JSX, JSON and CSS, and sorts imports, as a faster replacement for ESLint plus Prettier. Use when a user wants to set up biome.json, replace ESLint or Prettier, migrate their configs, run lint and format in CI or pre-commit, or configure the VS Code extension. license: Apache-2.0 compatibility: 'Node.js 14.21+ with npm, pnpm or yarn; standalone binaries also exist (Biome 2.x)' metadata: author: terminal-skills version: 1.1.0 category: development repository: https://github.com/biomejs/biome tags: "linter, formatter, rust, eslint-alternative, prettier-alternative"
Biome — Fast Linter and Formatter (ESLint + Prettier Replacement)
Overview
Biome (@biomejs/biome, current major version 2.x) formats, lints and organizes imports in one native binary with one config file, biome.json (or biome.jsonc). It covers JavaScript, TypeScript, JSX/TSX, JSON, CSS and more, and it is much faster than ESLint plus Prettier on large repositories. It does not run ESLint plugins, so projects that depend on plugin-specific rules may keep ESLint for those. Version 2 changed the config: import sorting is an "assist" action, files.ignore became files.includes, and rules.recommended became rules.preset.
Instructions
Install and initialize
npm install --save-dev --save-exact @biomejs/biome
npx biome init # writes biome.json with the schema URL of the installed version
Pin the exact version: formatting and lint results can change between releases. After upgrading, run npx biome migrate --write to update the config to the new schema.
Configuration
{
"$schema": "https://biomejs.dev/schemas/2.6.3/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "includes": ["src/**", "!**/*.gen.ts"] },
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"preset": "recommended",
"complexity": { "noForEach": "warn" },
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error",
"useExhaustiveDependencies": "warn"
},
"suspicious": { "noExplicitAny": "warn", "noConsole": "warn" },
"style": { "noNonNullAssertion": "warn", "useConst": "error" }
}
},
"formatter": { "indentStyle": "space", "indentWidth": 2, "lineWidth": 100, "lineEnding": "lf" },
"javascript": {
"formatter": { "quoteStyle": "single", "semicolons": "asNeeded", "trailingCommas": "all", "arrowParentheses": "always" }
}
}
Set $schema to the installed version (npx biome --version). files.includes takes globs, and a leading ! excludes a path; with vcs.useIgnoreFile Biome also skips files listed in .gitignore. Rule severities are "off", "info", "warn" and "error". Rule names change between versions; npx biome explain <ruleName> prints the docs for one, and an unknown name makes biome check fail with a list of valid keys.
Commands
npx biome format --write . # format only
npx biome lint . # lint only
npx biome check --write . # format + lint safe fixes + organize imports
npx biome check --write --unsafe . # also apply fixes that may change behavior; review the diff
npx biome ci . # CI: same checks, never writes, non-zero exit on problems
npx biome check --staged # only staged files (pre-commit)
npx biome check --changed --since=origin/main # only files changed against a branch
--fix is an alias of --write. Diagnostics print as file:line:col lint/<group>/<rule>; a rule can be silenced on the next line with // biome-ignore lint/suspicious/noConsole: reason (a reason is required).
Migrating from ESLint and Prettier
npx biome migrate prettier --write # imports .prettierrc and .prettierignore
npx biome migrate eslint --write # imports rules from the ESLint config
npx biome check .
migrate eslint maps rules that have a Biome equivalent and skips the rest, including plugin rules, so read what it printed. In a run against an empty biome.json it also set linter.rules.preset to "none"; set it back to "recommended" if you want Biome's default rule set. Afterwards remove eslint, prettier and their configs and plugins from package.json.
Editor
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
Put this in .vscode/settings.json and install the biomejs.biome extension. The extension uses the Biome version in the project's node_modules.
Examples
Request: "Replace ESLint and Prettier in this React project with Biome."
Run npm install -D -E @biomejs/biome, npx biome init, npx biome migrate eslint --write and npx biome migrate prettier --write, then npx biome check --write .. Replace the lint script with "lint": "biome check ." and the CI step with npx biome ci .. The first check prints each remaining diagnostic with its rule name and location.
Request: "Only check the files I'm about to commit."
Add "pre-commit": "biome check --write --staged" to a husky or lefthook hook (or run npx biome check --staged in lint-staged). Staged files that fail unfixable rules abort the commit with the diagnostics.
Guidelines
- Use
biome ciin CI andbiome check --writelocally; do not run both formatters (Biome and Prettier) on the same files. - Biome's formatter is close to Prettier but not identical; expect a one-time diff after migrating and commit it on its own.
- Safe fixes apply with
--write; unsafe fixes need--unsafeand a diff review. - There is no support for custom ESLint plugins; frameworks with their own rules (Vue templates, Svelte, Astro) have partial coverage, so check the language support page before dropping ESLint there.
- With
vcs.useIgnoreFileenabled Biome stops with an error if the folder has no.gitignore; add one or turn the option off.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/biome-fast-linter-and-formatter-mwirmdv3/download' --output '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md.part' && mv '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md.part' '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Node.js 14.21+ with npm, pnpm or yarn; standalone binaries also exist (Biome 2.x)
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md' && test -s '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/biome' && cp -R '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3' '.claude/skills/biome'Cursor
test -f '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md' && test -s '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/biome' && cp -R '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3' '.cursor/skills/biome'Codex
test -f '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md' && test -s '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/biome' && cp -R '.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3' '.agents/skills/biome'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/biome-fast-linter-and-formatter-mwirmdv3'openskills read 'biome-fast-linter-and-formatter-mwirmdv3'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/biome-fast-linter-and-formatter-mwirmdv3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.