Skip to content

advanced-astro/biome-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biome-config-astro

Install Size NPM Package Version License: ISC GitHub Repo Stars

Shared Biome config for Astro projects

Usage

Installation

(bun|npm|pnpm|yarn) add -D @biomejs/biome biome-config-astro

Add the extends array to your project's biome.json file:

// <project-root>/biome.json
{
    // ...
    "extends": ["biome-config-astro"],
    // ...
}

Add scripts to your package.json if you haven't already:

// <project-root>/package.json
{
    //...
    "scripts": {
        "format": "biome format . --write",
        "lint": "biome lint .",
        "lint:fix": "biome lint . --apply",
        "lint:fix:unsafe": "biome lint . --apply-unsafe"
    }
    // ...
}

Links

License

ISC License © 2024 Marc Redwerkz