Skip to content

Commit 53a791a

Browse files
authored
fix: update dependencies, use biome, pnpm (#231)
1 parent 7d3d31c commit 53a791a

File tree

12 files changed

+2367
-3758
lines changed

12 files changed

+2367
-3758
lines changed

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"env": {
44
"node": true
55
},
6-
"extends": ["@ctrl/eslint-config"],
6+
"extends": ["@ctrl/eslint-config-biome"],
77
"rules": {
88
"max-params": "off",
9-
"@typescript-eslint/restrict-plus-operands": "off"
9+
"no-mixed-operators": "off"
1010
}
1111
}

.github/workflows/ci.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,27 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v3
14+
15+
- uses: pnpm/action-setup@v3
16+
with:
17+
version: 8
18+
19+
- uses: actions/setup-node@v4
1520
with:
1621
node-version: 20
17-
cache: 'npm'
18-
- run: npm ci
22+
cache: "pnpm"
23+
24+
- name: install
25+
run: pnpm install
26+
1927
- name: lint
20-
run: npm run lint
28+
run: pnpm run lint
29+
2130
- name: test
22-
run: npm run test:ci
31+
run: pnpm run test:ci
32+
2333
- name: coverage
24-
uses: codecov/codecov-action@v3
34+
uses: codecov/codecov-action@v4
2535
with:
2636
token: ${{ secrets.CODECOV_TOKEN }}
2737

@@ -38,11 +48,19 @@ jobs:
3848
- uses: actions/checkout@v4
3949
with:
4050
fetch-depth: 0
41-
- uses: actions/setup-node@v3
51+
52+
- uses: pnpm/action-setup@v3
53+
with:
54+
version: 8
55+
56+
- uses: actions/setup-node@v4
4257
with:
4358
node-version: 20
44-
cache: 'npm'
45-
- run: npm ci
59+
cache: "pnpm"
60+
61+
- name: install
62+
run: pnpm install
63+
4664
- name: release
4765
run: npx semantic-release
4866
env:

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ jspm_packages
2626

2727
# Optional REPL history
2828
.node_repl_history
29-
.vscode
29+
.vscode/*
30+
!.vscode/launch.json
31+
!.vscode/settings.json
32+
.idea
33+
3034

3135
# build
3236
build
@@ -36,3 +40,4 @@ benchmark-out
3640
.rpt2*
3741
yarn.lock
3842
junit.xml
43+
.DS_Store

.prettierrc

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

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"editor.defaultFormatter": "biomejs.biome",
3+
"[javascript][typescript][javascriptreact][typescriptreact]": {
4+
"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "biomejs.biome",
6+
"editor.codeActionsOnSave": {
7+
"quickfix.biome": "explicit",
8+
"source.fixAll.eslint": "explicit"
9+
}
10+
}
11+
}

biome.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"files": {
4+
"ignoreUnknown": true,
5+
"ignore": ["dist/*"]
6+
},
7+
"extends": ["./node_modules/@ctrl/eslint-config-biome/biome.json"]
8+
}

0 commit comments

Comments
 (0)