@diegopluna/biome-config
v0.0.4
Published
BiomeJS configuration for my projects
Downloads
5
Maintainers
Readme
@diegopluna/biome-config
Usage
Installation
npm install -D @diegopluna/biome-config
Configuration
Add the following to your biome.json
file:
If it's a Node.js project:
// <project-root>/biome.json
{
"extends": ["@diegopluna/biome-config/node"]
}
If it's a React project:
// <project-root>/biome.json
{
"extends": ["@diegopluna/biome-config/react"]
}
Scripts
Add the following to your package.json
file:
{
"scripts": {
"lint": "biome lint .",
"lint:fix": "biome lint . --apply"
}
}
VSCode Configuration
- Install the Biome extension for VSCode.
- Create a
.vscode/settings.json
file in your project with the following content:
{
// ...
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImportes.biome": "explicit"
},
// ...
}