Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Latest commit

 

History

History
34 lines (25 loc) · 987 Bytes

File metadata and controls

34 lines (25 loc) · 987 Bytes

Important

As Projen has had support for Biome since version 0.92.11, this separate component has became obsolete and repo has been archived.

This is left to be visible to be an example of how to create a projen component.

Biome component for Projen NodeJS projects

Example usage

  • in Projen configuration file (usually .projenrc.ts or .projenrc.js) import Biome component and create new instance of it:
import { cdk } from 'projen'
import { Biome } from "projen-biome";

const project = new cdk.JsiiProject({
    defaultReleaseBranch: "main",
    devDeps: ["projen-biome"],
    eslint: false,
    prettier: false,
    name: "biome-example",
    projenrcTs: true,
});

new Biome(project);

project.synth();
  • Run only linting with npm run biome
  • Run full testing (including tests and linting/formatting) with npm run test