Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Biome Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-biome-knowledge-patch)
---
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 files and lint
rules, configuring editors and CI, formatting framework components, or writing
lint plugins. Use the topic references for rule-specific options and behavior.
## Reference index
| Reference | Topics |
| --- | --- |
| [Configuration and migration](references/configuration-and-migration.md) | Migration, deprecated settings, configuration discovery, shared configs, overrides, file selection, VCS ignores, EditorConfig |
| [CLI, editors, and reporters](references/cli-editors-and-reporters.md) | Fixes, selectors, watch mode, profiling, diagnostic output, daemon controls, editor settings, navigation, JavaScript API |
| [Formatting, Assists, and suppressions](references/formatting-assists-and-suppressions.md) | Import organization, sorting actions, formatter output, file-wide and ranged suppressions |
| [GritQL search and plugins](references/gritql-search-and-plugins.md) | Structural search, syntax queries, plugin registration, path scopes, fixes, JavaScript plugin APIs |
| [Languages and frameworks](references/languages-and-frameworks.md) | JSON, TypeScript, CSS, SCSS, GraphQL, HTML, SVG, Markdown, MDX, React, Vue, Svelte, Astro |
| [Linting and project analysis](references/linting-and-project-analysis.md) | Rule renames and promotions, presets, domains, type inference, dependencies, CSS checks, test rules, TanStack Query |
## Migration and breaking behavior
### Replace deprecated fix flags and configuration settings
For `lint` and `check`, use `--write` or `--fix` in place of `--apply`.
Add `--unsafe` to include unsafe fixes, replacing `--apply-unsafe`.
The `format` and `migrate` commands also accept `--fix` as an alias for `--write`.
`files.experimentalScannerIgnores` is deprecated. Run `biome migrate --write`
after upgrading to migrate it to force-ignore patterns in `files.includes`.
The top-level `linter.rules.recommended` flag is deprecated. Run
`biome migrate --write` to migrate it to `linter.rules.preset`.
Use `"preset": "all"` to enable all rules outside the nursery.
```json
{ "linter": { "rules": { "preset": "recommended" } } }
```
When a lint rule is configured as an object, include its `level`.
Rule objects with a missing level are rejected; a rule with no options accepts
an object containing just `level`.
Use `javascript.formatter.trailingCommas` and `--trailing-commas`; their singular
forms are deprecated. Use `indentWidth` in `formatter`, `javascript.formatter`,
and `json.formatter` in place of `indentSize`. The corresponding flags are
`--indent-width`, `--javascript-formatter-indent-width`, and
`--json-formatter-indent-width`.
### Update renamed and promoted rules
| Old rule | Replacement |
| --- | --- |
| `correctness/noInvalidNewBuiltin` | `correctness/noInvalidBuiltinInstantiation` |
| `style/useSingleCaseStatement` | `correctness/noSwitchDeclarations` |
| `suspicious/noConsoleLog` | `suspicious/noConsole` |
| `nursery/useAnchorHref` | `a11y/useValidAnchor` |
| `noFloatingClasses` | `noUnusedInstantiation` |
| `noMultiStr` | `noMultilineString` |
| `useFind` | `useArrayFind` |
| `useSpread` | `useSpreadOverApply` |
Update configuration keys and suppression categories to the stable groups for
promoted rules. The linting reference contains the group mappings.
Nursery rules are exempt from semantic versioning.
### Migrate ESLint and Prettier configurations
`biome migrate eslint` supports flat and legacy configurations, including
legacy `extends` and `.eslintignore`. It needs Node.js to resolve plugins and
extended configurations; YAML input is unsupported. `--write` can overwrite
existing Biome settings, including setting `linter.rules.recommended` to `false`.
Use `--include-inspired` for similar, rather than equivalent, rule counterparts.
```sh
biome migrate eslint --write --include-inspired
```
`biome migrate prettier --write` attempts to translate `.prettierignore` globs.
JavaScript configurations require Node.js; JSON5, TOML, and YAML are unsupported.
The configuration reference preserves the version-specific override mapping.
## Configuration and file selection
A nested package configuration needs `"root": false` unless it uses
`"extends": "//"`, which inherits the monorepo root and implies `root: false`.
Local file references in an `extends` array and paths inside shared configs
resolve from the consuming configuration. Later entries override earlier ones,
and local settings apply last. Shared files cannot extend other files in turn.
Use `files.includes` for the overall file set. A leading `!` excludes matches
after a positive pattern; a later positive pattern can add them back.
`formatter.includes`, `linter.includes`, and `assist.includes` narrow that set.
Use `!!` in `files.includes` to exclude a path from scanning as well.
```json
{ "files": { "includes": ["**", "!**/generated", "!!**/dist"] } }
```
For the first-matching `overrides[].includes` behavior in the configuration
reference, place narrower entries first and include any shared settings they need.
Both `--config-path` and `BIOME_CONFIG_PATH` accept a configuration file or directory.
Enable `formatter.useEditorconfig` to read the project-root `.editorconfig`;
explicit Biome settings take precedence.
## Fixes, filters, and CI output
`biome check --write` formats code after applying safe fixes, also when `--unsafe`
is included. Set a rule's `fix` alongside `level` to `safe`, `unsafe`, or `none`
to classify or suppress its code action. Severity `"info"` does not affect the
exit status, including with `--error-on-warnings`.
`biome lint --only` and `--skip` accept rule IDs, groups, domains, and configured
lint plugins. `--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.
`biome check` and `biome ci` also accept selectors for lint rules, Assist actions,
their groups, and lint domains.
```sh
biome check --only=source/useSortedKeys ./src
biome ci --skip=project ./src
```
`--staged` selects paths from Git's index and checks their working-tree contents,
including unstaged edits. `--changed` filters Git's changed paths to files present
under the current directory.
Repeat `--reporter` to combine outputs. Place `--reporter-file` immediately after
the reporter whose output should go to that file.
```sh
biome ci --reporter=default --reporter=sarif --reporter-file=biome-results.sarif
```
Use `--reporter=concise` for one line per diagnostic. `--max-diagnostics=none`
shows all diagnostics with the default reporter; nondefault reporters lift the
cap regardless of that flag. `biome ci` automatically enables the GitHub reporter
on GitHub Actions.
## Domains, type analysis, and editor navigation
Set a `linter.domains` entry to `"recommended"` for recommended non-nursery rules,
`"all"` to include nursery rules, or `"none"` to disable the domain.
Declared dependencies can activate domains automatically. React and Solid
domain rules can conflict.
The `project` domain enables module-graph analysis; `types` also enables type
inference. JavaScript and TypeScript projects can run type-aware lint rules
without installing the `typescript` package. With project rules enabled, the
scanner covers the entire project. Lint rules that read `package.json` use the
manifest of the package containing the file being linted.
Go-to-definition is disabled by default. Enable it in the extension settings for
your editor to let the language server scan the project and build its module
graph for navigation. Inline editor settings override the project configuration;
CLI runs still use the project configuration.
Pass `--watch` to `lint`, `format`, or `check` to refresh diagnostics as files
change. Watch mode is read-only and incompatible with `--fix` and `--write`.
Use `--profile-rules` with `lint` or `check` for timing and invocation counts for
lint rules, Assist actions, and GritQL plugins; execution time excludes syntax-tree queries.
## Formatting and framework support
`formatter.expand` controls array and object expansion: `"auto"` preserves an
object's newline before its first property and keeps arrays on one line if they
fit; `"always"` expands both; `"never"` keeps them on one line when they fit.
`package.json` uses `"always"` by default. Language-specific settings can use
`javascript.formatter.expand` or `json.formatter.expand`.
`formatter.trailingNewline` defaults to `true`; set it to `false` to remove the
final newline. Language-specific settings can override it. Use
`formatter.delimiterSpacing: true` for spaces inside supported delimiters in
JavaScript, CSS, JSON, and GraphQL; affected delimiters depend on the language.
Set `html.experimentalFullSupportEnabled` for experimental parsing, formatting,
and linting of Vue, Svelte, and Astro components, including embedded languages.
With it off, analysis extracts only JavaScript or TypeScript. Embedded scripts
and styles use their language-specific formatter settings.
Enable `javascript.experimentalEmbeddedSnippetsEnabled` for embedded-language
parsing and formatting, including CSS-in-JS and supported GraphQL templates.
The language reference records template tags, framework syntax, and exceptions.
## Suppressions and lint plugins
Use `biome-ignore-all` to suppress a lint rule or the formatter for an entire
file. Bound a suppression with `biome-ignore-start` and `biome-ignore-end`, or
omit the end comment to extend it to EOF.
List a `.grit` file in the top-level `plugins` array to run it with `biome lint`
and `biome check`. Use an object with `path` and `includes` for path-scoped plugins.
`register_diagnostic` takes a matched node as `span` and diagnostic text as
`message`; optional `severity` defaults to `error`.
Use `=>` for plugin rewrites. Plugin fixes default to `fix_kind = "unsafe"` and
require `--write --unsafe`; mark a fix `"safe"` to apply it with `--write` alone.