Skip to content

Commit 2d3d992

Browse files
committed
chore: switch formatter to biome
🎉
1 parent 09a3eea commit 2d3d992

File tree

13 files changed

+661
-1082
lines changed

13 files changed

+661
-1082
lines changed

.eslintrc.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,20 @@
2727
"eqeqeq": "error",
2828
"line-comment-position": ["error", { "position": "above" }],
2929
"lines-around-comment": "error",
30-
"no-alert": "error",
31-
"no-confusing-arrow": "error",
3230
"no-duplicate-imports": ["error", { "includeExports": true }],
3331
"no-else-return": ["error", { "allowElseIf": false }],
3432
"no-empty-function": "error",
35-
"no-extra-label": "error",
3633
"no-floating-decimal": "error",
3734
"no-implicit-coercion": "error",
3835
"no-implied-eval": "error",
36+
"no-labels": "error",
3937
"no-lone-blocks": "error",
4038
"no-loss-of-precision": "error",
4139
"no-multi-assign": "error",
4240
"no-multi-str": "error",
4341
"no-negated-condition": "error",
4442
"no-nested-ternary": "error",
4543
"no-new-wrappers": "error",
46-
"no-octal-escape": "error",
4744
"no-restricted-globals": [
4845
"error",
4946
{
@@ -65,14 +62,11 @@
6562
],
6663
"no-return-await": "error",
6764
"no-sequences": ["error", { "allowInParentheses": false }],
68-
"no-shadow": "off",
6965
"no-template-curly-in-string": "error",
70-
"no-trailing-spaces": "error",
7166
"no-undef-init": "error",
7267
"no-unneeded-ternary": "error",
7368
"no-unreachable-loop": "error",
7469
"no-unsafe-optional-chaining": ["error", { "disallowArithmeticOperators": true }],
75-
"no-useless-backreference": "error",
7670
"no-useless-call": "error",
7771
"no-useless-computed-key": "error",
7872
"no-useless-concat": "error",

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
- name: Run ESLint
2525
run: npm run lint
2626

27-
prettier:
28-
name: Prettier
27+
biome:
28+
name: Biome
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout repository
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: npm ci
4242

43-
- name: Run Prettier
43+
- name: Run Biome
4444
run: npm run check
4545

4646
typescript:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/node_modules
2-
/dist
1+
node_modules
2+
dist
33
eval.*
44
database.*
55

.prettierrc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"recommendations": [
3-
"esbenp.prettier-vscode",
4-
"dbaeumer.vscode-eslint",
5-
"github.vscode-pull-request-github",
3+
"biomejs.biome",
4+
"christian-kohler.npm-intellisense",
5+
"christian-kohler.path-intellisense",
66
"codezombiech.gitignore",
7+
"dbaeumer.vscode-eslint",
78
"eamodio.gitlens",
8-
"christian-kohler.npm-intellisense",
9-
"christian-kohler.path-intellisense"
9+
"github.vscode-pull-request-github",
10+
"Prisma.prisma"
1011
]
1112
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"source.fixAll": true,
44
"source.organizeImports": false
55
},
6-
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.defaultFormatter": "biomejs.biome",
77
"editor.formatOnSave": true,
88
"files.insertFinalNewline": true,
99
"typescript.tsdk": "node_modules\\typescript\\lib",

biome.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"formatter": {
9+
"indentSize": 2,
10+
"indentStyle": "space",
11+
"lineWidth": 120
12+
},
13+
"javascript": {
14+
"formatter": {
15+
"arrowParentheses": "asNeeded",
16+
"quoteStyle": "single",
17+
"semicolons": "always",
18+
"trailingComma": "none"
19+
}
20+
},
21+
"linter": {
22+
"enabled": false
23+
}
24+
}

0 commit comments

Comments
 (0)