Skip to content

fix: missing Biome flags in fast-element and fast-html package scripts #7355

@radium-v

Description

@radium-v

🐛 Bug Report

The lint and lint:fix scripts in fast-element and fast-html are missing the --changed and --no-errors-on-unmatched flags that the equivalent root-level scripts use.

💻 Repro or Code Sample

The root package.json runs lint with:

"lint": "biome lint --changed --no-errors-on-unmatched .",
"lint:fix": "biome lint --changed --no-errors-on-unmatched --fix ."

But packages/fast-element/package.json and packages/fast-html/package.json both have:

"lint": "biome lint .",
"lint:fix": "biome lint --fix ."

🤔 Expected Behavior

The package-level lint and lint:fix scripts should include the same --changed --no-errors-on-unmatched flags as the root, so running lint at the package level behaves consistently with the root.

😯 Current Behavior

Running npm run lint -w @microsoft/fast-element lints all files instead of only changed files, and fails on unmatched globs — different behavior than npm run lint from the root.

💁 Possible Solution

Update the existing scripts in both packages to match the root flags:

"lint": "biome lint --changed --no-errors-on-unmatched .",
"lint:fix": "biome lint --changed --no-errors-on-unmatched --fix ."

🔦 Context

The inconsistency means developers working within a single package get different lint behavior than CI or root-level runs. This can surface false positives on unchanged files locally, or cause CI failures that don't reproduce at the package level.

🌍 Your Environment

  • OS & Device: macOS on Apple Silicon
  • @biomejs/biome: 2.4.8
  • @microsoft/fast-element: v2 (current main)
  • @microsoft/fast-html: alpha (current main)

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreMaintenance or non-code workstatus:triageNew Issue - needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions