Skip to content

Commit

Permalink
Switch from Prettier to Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyGiraudel committed Aug 10, 2024
1 parent 1c45455 commit 7d5e6f3
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 1,096 deletions.
2 changes: 1 addition & 1 deletion .husky/post-rewrite
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx --no-install lint-staged
npm run lint:staged
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx --no-install lint-staged
npm run lint:staged
25 changes: 25 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"attributePosition": "auto"
},
"organizeImports": { "enabled": true },
"linter": { "enabled": true, "rules": { "recommended": true } },
"javascript": {
"formatter": {
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single"
}
}
}
Loading

0 comments on commit 7d5e6f3

Please sign in to comment.