Skip to content

Commit 9b0fb0e

Browse files
committed
feat: Upgrade dependencies, fix lint
1 parent 03b9fcb commit 9b0fb0e

File tree

10 files changed

+1255
-1075
lines changed

10 files changed

+1255
-1075
lines changed

.eslintignore

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

.eslintrc

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

.github/workflows/ci.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- uses: pnpm/action-setup@v3
16-
with:
17-
version: 9
18-
19-
- uses: actions/setup-node@v4
20-
with:
21-
node-version: 22
22-
cache: "pnpm"
23-
24-
- name: install
25-
run: pnpm install
15+
- uses: wyvox/action-setup-pnpm@v3
16+
with: { node-version: 22, pnpm-version: 9 }
2617

2718
- name: lint
2819
run: pnpm run lint
@@ -49,17 +40,8 @@ jobs:
4940
with:
5041
fetch-depth: 0
5142

52-
- uses: pnpm/action-setup@v3
53-
with:
54-
version: 9
55-
56-
- uses: actions/setup-node@v4
57-
with:
58-
node-version: 22
59-
cache: "pnpm"
60-
61-
- name: install
62-
run: pnpm install
43+
- uses: wyvox/action-setup-pnpm@v3
44+
with: { node-version: 22, pnpm-version: 9 }
6345

6446
- name: release
6547
run: npx semantic-release

benchmark/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ts = new TrueSkill();
66

77
function generateTeams(sizes: number[], env?: TrueSkill) {
88
return sizes.map(size => {
9-
const r = Array(size).fill(0);
9+
const r = new Array(size).fill(0);
1010
if (env) {
1111
return r.map(() => env.createRating());
1212
}

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import config from '@ctrl/eslint-config-biome';
2+
3+
export default [
4+
{
5+
ignores: [
6+
'tailwind.config.cjs',
7+
'postcss.config.cjs',
8+
'eslint.config.mjs',
9+
'vite.config.ts',
10+
'dist',
11+
'coverage',
12+
'build',
13+
],
14+
},
15+
...config,
16+
];

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"benchmark": "npx tsm benchmark/index.ts",
1717
"lint": "pnpm run '/^(lint:biome|lint:eslint)$/'",
1818
"lint:biome": "biome check .",
19-
"lint:eslint": "eslint --ext .ts,.tsx .",
19+
"lint:eslint": "eslint .",
2020
"lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'",
21-
"lint:eslint:fix": "eslint --ext .ts,.tsx . --fix",
21+
"lint:eslint:fix": "eslint . --fix",
2222
"lint:biome:fix": "biome check . --apply",
2323
"prepare": "npm run build",
2424
"build": "tsc",
@@ -28,24 +28,24 @@
2828
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
2929
},
3030
"dependencies": {
31-
"mathjs": "^12.4.2",
31+
"mathjs": "^13.2.0",
3232
"ts-gaussian": "^3.0.4",
33-
"uuid": "^9.0.1"
33+
"uuid": "^11.0.2"
3434
},
3535
"devDependencies": {
36-
"@biomejs/biome": "1.7.2",
37-
"@ctrl/eslint-config-biome": "2.6.7",
38-
"@sindresorhus/tsconfig": "5.0.0",
36+
"@biomejs/biome": "1.9.4",
37+
"@ctrl/eslint-config-biome": "4.2.10",
38+
"@sindresorhus/tsconfig": "6.0.0",
3939
"@types/benchmark": "2.1.5",
40-
"@types/lodash": "4.17.0",
41-
"@types/node": "20.12.7",
42-
"@types/uuid": "9.0.8",
43-
"@vitest/coverage-v8": "1.5.3",
40+
"@types/lodash": "4.17.13",
41+
"@types/node": "22.8.6",
42+
"@types/uuid": "10.0.0",
43+
"@vitest/coverage-v8": "2.1.4",
4444
"benchmark": "2.1.4",
4545
"lodash": "4.17.21",
46-
"typedoc": "0.25.13",
47-
"typescript": "5.4.5",
48-
"vitest": "1.5.3"
46+
"typedoc": "0.26.10",
47+
"typescript": "5.6.3",
48+
"vitest": "2.1.4"
4949
},
5050
"publishConfig": {
5151
"access": "public",

0 commit comments

Comments
 (0)