1.2.0 • Published 1 year ago
@forgedev-br/biome-config v1.2.0
Code Formatting and Linting Configuration used by ForgeDev BR
What"s included?
- Biome for code formatting and linting;
Setup
Install dependencies:
npm add --save-dev @biomejs/biome @forgedev-br/biome-configConfigure your project:
npx @biomejs/biome initExtend the configuration within biome.json file:
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["@forgedev-br/biome-config/biome"]
}Add a script to package.json:
"scripts": {
"lint": "npx @biomejs/biome check src"
}Note: You can also run
npx @biomejs/biome check --writeto automatically fix the code.