Skip to content

Commit

Permalink
feat: Improve biome config (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Yaroslavtsev authored and vcapretz committed Nov 18, 2024
1 parent 94e142a commit 9822556
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 26 deletions.
25 changes: 0 additions & 25 deletions biome.json

This file was deleted.

33 changes: 33 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"clientKind": "git",
// use .gitignore to ignore files
"useIgnoreFile": true,
// only run on changed files by default (faster, but happy to remove)
"defaultBranch": "main"
},
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single"
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"files": {
"ignore": ["pnpm-lock.yaml"]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build": "tsup src/index.ts --format esm,cjs --dts",
"test": "jest",
"test:watch": "jest --watch",
"format:apply": "biome check --apply .",
"format:apply": "biome check --write .",
"format:check": "biome format .",
"format": "biome format --write .",
"lint": "biome check .",
Expand Down

0 comments on commit 9822556

Please sign in to comment.