Skip to main content

Biome

Biome is a toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

🚀 Usage​

Add the following command to your CI/CD pipeline to lint and format your project with Biome Plugin:

fluentci run --wasm biome check

Commands​

NameDescription
setupInstall Biome CLI
formatRun the formatter on a set of files.
lintRuns various checks on a set of files.
ciRuns formatter, linter and import sorting to the requested files.
checkRuns formatter, linter and import sorting to the requested files.

Code usage​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Then, you can use the following code to run Biome Plugin:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec!["latest"])?;

CI/CD Integration​

The following example shows how to integrate FluentCI with popular CI providers to lint and format your project with Biome Plugin:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: check
run: fluentci run --wasm biome check