Skip to content

dagger/biomejs

Repository files navigation

biomejs

A Dagger toolchain that runs Biome on a JavaScript project, using your project's own Biome configuration and version.

Functions

Function Description
lint Lint the source code (a @check).
fix Fix lint issues; returns the changes as a Changeset.

Usage

Install the module in your workspace:

dagger install github.com/dagger/biomejs

Run the lint check:

dagger check               # run every check in the workspace
dagger check biomejs:lint  # just the Biome check

Fix lint issues — returns a changeset; approve it to apply the fixes to your workspace (or pass -y to auto-apply):

dagger api call biomejs fix

Working directory awareness

Functions 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.

About

A dagger module for Biome - a formatter for web applications

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages