Skip to content
Back to skills

Biome Knowledge Patch

ASecurity

Biome

  • 25 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
developmentjavascripttypescriptgojavashellreactvuenodegitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill biome-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Biome Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Biome Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-biome-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-biome-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: biome-knowledge-patch
description: Biome
version: "2.6.9"
license: MIT
metadata:
  author: Nevaberry
---



# Biome Knowledge Patch

Load this skill when migrating Biome configuration, selecting CLI or editor
behavior, configuring lint rules and plugins, or working with framework files
and embedded languages. Use the topic references for complete options,
exceptions, examples, and version-specific behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [Configuration and migration](references/configuration-and-migration.md) | ESLint and Prettier migration, discovery, inheritance, overrides, file selection, ignores, rule levels, domains |
| [CLI, editors, and reporters](references/cli-editors-and-reporters.md) | Fixes, selectors, stdin, watch mode, reports, editor settings, navigation, logging, profiling, JavaScript API |
| [Formatting, assists, and suppressions](references/formatting-assists-and-suppressions.md) | Layout controls, import organization, sorting, suppression comments, byte order marks |
| [GritQL search and lint plugins](references/gritql-search-and-plugins.md) | Structural search, syntax patterns, plugin languages, path filters, fixes, JavaScript plugin APIs |
| [Languages and frameworks](references/languages-and-frameworks.md) | JavaScript, TypeScript, JSON, CSS, SCSS, GraphQL, Markdown, MDX, YAML, HTML, SVG, Vue, Svelte, Astro |
| [Linting and project analysis](references/linting-and-project-analysis.md) | Rule migrations, scanning, type inference, dependencies, hooks, naming, collections, runtime APIs, tests |

## Breaking changes and deprecations

For `lint` and `check`, use `--write` or `--fix` in place of deprecated
`--apply`. Add `--unsafe` to include unsafe fixes, replacing `--apply-unsafe`.
The `format` and `migrate` commands also accept `--fix` as an alias for `--write`.
`biome check --write` formats after safe fixes, also when `--unsafe` is included.

The top-level `linter.rules.recommended` flag is deprecated. Run
`biome migrate --write` to migrate it to `linter.rules.preset`.
The `"all"` preset enables all rules outside the nursery.

```json
{ "linter": { "rules": { "preset": "recommended" } } }
```

Rule objects must include `level`; objects with a missing level are rejected.
A rule without options can use an object containing only `level`.
Set `fix` alongside `level` to `safe`, `unsafe`, or `none` to control its action.

`files.experimentalScannerIgnores` is deprecated. Run `biome migrate --write`
after upgrading to migrate to force-ignore patterns in `files.includes`.
Use `javascript.formatter.trailingCommas` and `--trailing-commas`; their
singular forms are deprecated. Use `indentWidth` in formatter settings in
place of `indentSize`.

Update config keys and suppression categories when rules move from nursery.
The linting reference contains the full group mappings and historical names.

| Old identifier | Replacement |
| --- | --- |
| `nursery/useAnchorHref` | `a11y/useValidAnchor` |
| `correctness/noInvalidNewBuiltin` | `correctness/noInvalidBuiltinInstantiation` |
| `style/useSingleCaseStatement` | `correctness/noSwitchDeclarations` |
| `suspicious/noConsoleLog` | `suspicious/noConsole` |
| `noFloatingClasses` | `noUnusedInstantiation` |
| `noMultiStr` | `noMultilineString` |
| `useFind` | `useArrayFind` |
| `useSpread` | `useSpreadOverApply` |

Nursery rules are exempt from semantic versioning.

## Migrate and locate configuration

`biome migrate eslint` supports flat and legacy configurations, legacy
`extends`, `.eslintignore`, and `eslintIgnore` in `package.json`. It needs
Node.js to resolve plugins and extended configurations; YAML is unsupported.
`--write` can overwrite existing Biome settings, including setting
`linter.rules.recommended` to `false`. `--include-inspired` includes rules
whose Biome counterparts are similar rather than equivalent.

`biome migrate prettier --write` translates overrides and attempts to translate
ignore globs. JavaScript configurations require Node.js; JSON5, TOML, and YAML
are unsupported. The migration maps `bracketSpacing` to the global formatter
setting and writes `markdown.parser.frontmatter: true`.

Biome checks `biome.json`, `biome.jsonc`, `.biome.json`, and `.biome.jsonc` in
that order within each directory. Discovery checks the working directory,
parents, and then the user config location. `--config-path` and
`BIOME_CONFIG_PATH` accept a configuration file or directory.

Nested package configurations need `root: false` unless they use
`"extends": "//"`, which inherits the monorepo root and implies `root: false`.
Local references and paths inside shared configurations resolve from the
consuming configuration. Later `extends` entries override earlier entries,
and local settings apply last. Shared files cannot extend other files in turn.
The consuming configuration determines root status; an extended `root` is ignored.

## Select files and control scanning

`files.includes` selects files; tool-specific `formatter.includes`,
`linter.includes`, and `assist.includes` narrow that set. A leading `!` excludes
after a positive match, and a later positive pattern can add matches back.
Use `src/**` for a tree and `!dist` to exclude a directory and its contents.
A recursive `**` must occupy an entire path segment.

With a project-domain rule enabled, excluded files can still be indexed when
an included file imports them. Ordinary excludes can also allow discovery of
nested configurations and ignore files. Prefix a glob with `!!` in
`files.includes` to exclude it from scanning too.

```json
{ "files": { "includes": ["**", "!**/generated", "!!**/dist"] } }
```

Without project rules, scanning is limited to requested paths or the working
directory when there are no path arguments. With project rules enabled, the
scanner covers the entire project. JavaScript and TypeScript type-aware linting
does not require the `typescript` package. Rules reading `package.json` use the
containing package's manifest.

`--staged` selects Git index paths but checks their working-tree contents,
including unstaged edits. `--changed` filters changed Git paths to files under
the current directory. With `vcs.useIgnoreFile`, `.git/info/exclude` is respected
alongside `.gitignore`, including in linked worktrees.

## Select checks and apply fixes

`biome lint --only` and `--skip` accept rule IDs, groups, and domains;
`--skip` takes precedence. Selecting a disabled rule by ID enables it at
`error` if recommended or `warn` otherwise. Selecting a group enables its
recommended setting while preserving explicit rule disables. The nursery
group is accepted. Filters also apply to configured lint plugins.

`biome check` and `biome ci` accept these selectors for lint rules, Assist
actions, their groups, and lint domains.

```sh
biome check --only=source/useSortedKeys ./src
biome ci --skip=project ./src
```

Use `--watch` with `lint`, `format`, or `check` to refresh diagnostics as files
change. Watch mode is read-only and incompatible with `--fix` and `--write`.
CLI commands with `--use-server` read disk contents even if an editor on the
same daemon has unsaved changes; each client keeps its own open-file text.

## Configure domains and type-aware rules

Domain values are `"recommended"` for recommended non-nursery rules, `"all"`
for all domain rules including nursery, and `"none"` to disable the domain.
Declared dependencies can activate domains even when `linter.domains` is
configured. React and Solid domain rules can conflict.

```json
{ "linter": { "domains": { "project": "recommended", "types": "all" } } }
```

The `project` domain enables module-graph analysis; `types` also enables type
inference. A whole-group severity enables domain-specific rules only if the
corresponding domain or individual rule is also enabled.
`"info"` diagnostics do not affect exit status, even with `--error-on-warnings`.

`nursery/noUnusedClasses` flags CSS classes unused in HTML-like or JSX files.
`nursery/noUndeclaredClasses` can follow transitive component importers to
find styles; its missing-class diagnostics show the import tree it checked.
The language reference covers Sass partial resolution and framework scopes.

## Formatting and framework switches

`formatter.expand` controls array and object expansion: `"auto"` preserves
an initial object newline and keeps arrays on one line when they fit;
`"always"` expands, and `"never"` keeps values on one line when they fit.
`package.json` defaults to `"always"`.
`formatter.delimiterSpacing` adds spaces inside supported delimiters, with
language-specific effects. `formatter.trailingNewline` defaults to `true`;
set it to `false` to remove the final newline.

Standard CSS and GraphQL formatting and linting are enabled by default. HTML
formatting is opt-in through `html.formatter.enabled`. Set
`html.experimentalFullSupportEnabled` for Vue, Svelte, and Astro parsing,
formatting, and linting, including embedded languages. With it off, analysis
extracts only JavaScript or TypeScript. Component scripts and styles use their
language-specific formatter settings; `html.formatter.indentScriptAndStyle`
defaults to `false` and also controls Astro frontmatter indentation.

`javascript.experimentalEmbeddedSnippetsEnabled` opts into embedded-language
parsing and formatting, including CSS-in-JS and supported GraphQL templates.
`*.module.css` is recognized as CSS Modules automatically.
`html.parser.vue` enables Vue syntax in ordinary HTML files.
MDX parsing, formatting, and linting are available with the `lang_mdx` feature.

Assist is enabled by default. `organizeImports` can sort bare imports; use
`{ "kind": "bare" }`, `{ "kind": "!bare" }`, and `":STYLE:"` for grouping.
Use `biome-ignore-all` for file-wide lint or formatter suppression, or
`biome-ignore-start` and `biome-ignore-end` for a range; omitting the end
extends the suppression to EOF.

## Plugins and structural search

`biome search` is experimental and matches GritQL patterns across whitespace
and quote styles. Enclose shell queries in single quotes to preserve backticks
and metavariables. Register `.grit` files in `plugins`; an object with `path`
and `includes` scopes a plugin with positive and negative globs.

GritQL `register_diagnostic` takes a matched node as `span` and diagnostic text
as `message`; optional `severity` defaults to `error`. Plugins can use
`language css;` or `language json`. Rewrites use `=>`; plugin fixes default to
`fix_kind = "unsafe"` and require `--write --unsafe`. Mark a fix `"safe"` to
apply it with `--write` alone.

JavaScript plugins expose node and token trivia and comment APIs.
The `biomePlugin` lint domain requires explicit activation; `"all"` includes
its nursery rules. Use `nodeKinds()` or `tokenKinds()` matchers for multiple
kind checks, and create these matchers and `union()` at module scope.

## Reports, editors, and profiling

Repeat `--reporter` to combine outputs; put `--reporter-file` immediately after
the reporter it targets. Available formats include SARIF, GitLab Code Quality,
Checkstyle XML, Reviewdog JSON, JUnit XML, JSON, and concise one-line diagnostics.
`--max-diagnostics=none` removes the default reporter cap; nondefault reporters
lift it regardless. The default reporter writes its summary, cap warning,
skipped-fix notices, and diagnostics to stderr.

Editor inline settings override project configuration for the language server;
CLI runs still use project configuration. Go-to-definition is disabled by
default: enable it in the editor extension to scan the project and build the
module graph for navigation. Disabling `source.organizeImports.biome` also
keeps import sorting out of `source.fixAll.biome`.

`--profile-rules` on `lint` or `check` reports timings and invocation counts for
lint rules, Assist actions, and plugins; execution time excludes syntax-tree
queries. Each plugin gets a separate `plugin/<pluginName>` entry using its
suppression name. The CLI reference covers daemon watchers, log locations,
log levels, configuration diagnostics, and fatal-error backtraces.

Files in this skill

  • SKILL.md8.5 KB
  • coverage.json1.6 KB
  • references/cli-editors-and-reporters.md7.4 KB
  • references/configuration-and-migration.md6.9 KB
  • references/formatting-assists-and-suppressions.md5.6 KB
  • references/gritql-search-and-plugins.md2.9 KB
  • references/languages-and-frameworks.md8.6 KB
  • references/linting-and-project-analysis.md19.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.