Skip to content

a minimalist Biome configuration i use in my projects with rather strict linting and formatting rules, as an alternative to ESLint and Prettier.

License

Notifications You must be signed in to change notification settings

ceIia/biome-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

biome minimalist config

a minimalist Biome configuration i use in my projects with rather strict linting and formatting rules, as an alternative to ESLint and Prettier.

installation

# using bun
bun add --dev @c14l/biome-config @biomejs/biome

usage

after installation, create a biome.json file in your project root and extend this configuration:

{
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "extends": ["@c14l/biome-config"]
}

you can also override specific settings:

{
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "extends": ["@c14l/biome-config"],
  "formatter": {
    "indentStyle": "tab"
  }
}

editor integration

VS Code / Cursor

for the best experience in VS Code or Cursor, add these settings to your settings.json:

{
  "[javascript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[json]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "typescript.tsdk": "node_modules/typescript/lib"
}

make sure to install the Biome extension for VS Code.

you can also enable format on save with:

{
  "editor.formatOnSave": true
}

About

a minimalist Biome configuration i use in my projects with rather strict linting and formatting rules, as an alternative to ESLint and Prettier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published