A Dagger toolchain that runs Biome on a JavaScript project, using your project's own Biome configuration and version.
| Function | Description |
|---|---|
lint |
Lint the source code (a @check). |
fix |
Fix lint issues; returns the changes as a Changeset. |
Install the module in your workspace:
dagger install github.com/dagger/biomejsRun the lint check:
dagger check # run every check in the workspace
dagger check biomejs:lint # just the Biome checkFix lint issues — returns a changeset; approve it to apply the fixes to your
workspace (or pass -y to auto-apply):
dagger api call biomejs fixFunctions run from your current working directory within the workspace. The
whole workspace is mounted — so shared configuration like a root
biome.json still resolves — but Biome itself runs from the directory you
invoke dagger from. Run from the workspace root to cover everything, or
from a subdirectory to scope lint and fix to that subtree.
If the workspace root holds no package.json, the dependency install is
skipped and npx fetches Biome on demand — a standalone Biome config works
without a Node project.