Skip to content

Commit 20bcb3f

Browse files
committed
feat: switch to biome
1 parent 6acf166 commit 20bcb3f

111 files changed

Lines changed: 3284 additions & 4135 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

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

.eslintrc

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

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ jobs:
5454
- name: install dependencies
5555
run: pnpm install
5656

57-
- name: lint code
58-
run: pnpm lint
59-
60-
- name: check formatting
61-
run: pnpm format
62-
6357
- name: build packages
6458
run: pnpm build
6559

60+
- name: Setup Biome
61+
uses: biomejs/setup-biome@v2
62+
with:
63+
version: latest
64+
- name: Run Biome
65+
run: biome ci .
66+
6667
- name: run tests
6768
run: pnpm test
6869
# run coverage only on ubuntu

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no-install commitlint --config commitlint.config.cjs --edit "$1"
4+
npx --no-install commitlint --config commitlint.config.js --edit "$1"

.prettierignore

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

.prettierrc

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

.vscode/settings.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"eslint.packageManager": "pnpm",
32
"npm.packageManager": "pnpm",
43
"editor.formatOnSave": true,
5-
"prettier.enable": true,
6-
"[typescript]": {
7-
"editor.defaultFormatter": "esbenp.prettier-vscode"
8-
}
4+
"biome.enabled": true,
5+
"eslint.enable": false,
6+
"editor.codeActionsOnSave": {
7+
"source.fixAll": "always"
8+
},
9+
"typescript.tsdk": "node_modules/typescript/lib"
910
}

biome.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
3+
"files": {
4+
"ignore": ["node_modules", "packages/*/dist", "examples/aws/.build", "examples/firebase-functions/lib", "coverage"]
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 120,
13+
"attributePosition": "auto"
14+
},
15+
"organizeImports": { "enabled": true },
16+
"linter": {
17+
"enabled": true,
18+
"rules": {
19+
"recommended": true,
20+
"correctness": {
21+
"noVoidTypeReturn": "off"
22+
},
23+
"style": {
24+
"noParameterAssign": "off"
25+
},
26+
"suspicious": {
27+
"noAssignInExpressions": "off",
28+
"noExplicitAny": "off"
29+
}
30+
}
31+
},
32+
"javascript": {
33+
"formatter": {
34+
"jsxQuoteStyle": "double",
35+
"quoteProperties": "asNeeded",
36+
"trailingCommas": "none",
37+
"semicolons": "asNeeded",
38+
"arrowParentheses": "always",
39+
"bracketSpacing": true,
40+
"bracketSameLine": false,
41+
"quoteStyle": "single",
42+
"attributePosition": "auto"
43+
}
44+
}
45+
}

commitlint.config.cjs

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

config/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const build = (dependencies: Record<string, string> = {}) =>
99
minify: false,
1010
lib: {
1111
entry: 'src/index.ts',
12-
fileName: () => `index.js`,
12+
fileName: () => 'index.js',
1313
formats: ['es']
1414
},
1515
ssr: true,

0 commit comments

Comments
 (0)