Skip to content

biome:lint post-processor uses removed --apply flag #3808

@mariusch

Description

@mariusch

Description

The biome:lint post-processor preset invokes biome lint --apply {{path}}. Biome removed --apply in v2.0 (renamed to --write), so this preset fails on any project using Biome 2.x.

Reproducible example or configuration

Suggested fix

Replace --apply with --write to match Biome 2.x. Optionally add a biome:check preset that runs biome check --write (combines lint + format in a single pass).

Workaround

Use a custom post-processor instead of the preset:

postProcess: [
  {
    command: "biome",
    args: ["check", "--write", "--no-errors-on-unmatched", "{{path}}"],
    name: "Biome (Check)",
  },
],

Notes

This was previously failing silently; the error only became visible after #3683 (fix: surface output.postProcess execution errors) was merged.

OpenAPI specification (optional)

No response

System information (optional)

Version

  • @hey-api/openapi-ts: 0.96.1
  • @biomejs/biome: 2.4.12

Metadata

Metadata

Labels

bug 🔥Broken or incorrect behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions