@amedia/kragl-biome
v1.1.7
Published
Biome runner for Kragl
Maintainers
Keywords
Readme
kragl-biome
The goal of kragl-biome is to function as a drop-in replacement for eslint/prettier in kragl with the same formatting and rules. This is an experimental package.
Are you considering migrating to biome in a repository in production? Have a discussion on #fag-front first.
Installation
npm install --save-dev @amedia/kragl-biomeSetup
1. Add scripts to package.json
{
"devDependencies": {
"@amedia/kragl-biome": "0.0.0"
},
"scripts": {
"lint": "kragl run biome lint",
"lint-fix": "kragl run biome lint --write",
"format": "kragl run biome format --write"
}
}2. Create biome.json configuration
Add a biome.json file to the root of your repository:
{
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json", // You can also use "./node_modules/@biomejs/biome/configuration_schema.json"
"extends": ["@amedia/biome-config"]
}3. Configure file ignores (optional)
To ignore specific files or directories:
{
"files": {
"ignore": ["**/node_modules", "**/dist"]
}
}4. Configure your editor
For VSCode, add to your settings.json:
{
"editor.defaultFormatter": "biomejs.biome"
}Migrating from ESLint and Prettier
If you're migrating from ESLint and Prettier, remember to:
- Disable or remove ESLint and Prettier extensions/plugins from your editor
- Remove old ESLint and Prettier configuration files
