Skip to content

Commit

Permalink
Add biome formatter config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 committed May 2, 2024
1 parent 7b953e5 commit 5cff9de
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
4 changes: 4 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
}
}
},
"formatter": {
"formatWithErrors": true,
"indentStyle": "space"
},
"overrides": [{
"include": ["__tests__/**"],
"linter": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"build:clean": "npm run clean && npm run build",
"check": "tsc --noEmit",
"check:watch": "tsc --watch --noEmit",
"lint": "biome lint .",
"biome:ci": "biome ci",
"lint:fix": "biome lint --apply-unsafe .",
"fmt:fix": "biome format --write .",
"test": "vitest",
"test:ci": "vitest --run --coverage",
"proto": "earthly --strict --remote-cache=ghcr.io/kesin11/ci_analyzer_earthly:cache +proto",
Expand Down

0 comments on commit 5cff9de

Please sign in to comment.