Skip to content

Commit

Permalink
feat: Upgrade dependencies, fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Nov 1, 2024
1 parent 03b9fcb commit 9b0fb0e
Show file tree
Hide file tree
Showing 10 changed files with 1,255 additions and 1,075 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

26 changes: 4 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: install
run: pnpm install
- uses: wyvox/action-setup-pnpm@v3
with: { node-version: 22, pnpm-version: 9 }

- name: lint
run: pnpm run lint
Expand All @@ -49,17 +40,8 @@ jobs:
with:
fetch-depth: 0

- uses: pnpm/action-setup@v3
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: install
run: pnpm install
- uses: wyvox/action-setup-pnpm@v3
with: { node-version: 22, pnpm-version: 9 }

- name: release
run: npx semantic-release
Expand Down
2 changes: 1 addition & 1 deletion benchmark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ts = new TrueSkill();

function generateTeams(sizes: number[], env?: TrueSkill) {
return sizes.map(size => {
const r = Array(size).fill(0);
const r = new Array(size).fill(0);
if (env) {
return r.map(() => env.createRating());
}
Expand Down
16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import config from '@ctrl/eslint-config-biome';

export default [
{
ignores: [
'tailwind.config.cjs',
'postcss.config.cjs',
'eslint.config.mjs',
'vite.config.ts',
'dist',
'coverage',
'build',
],
},
...config,
];
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"benchmark": "npx tsm benchmark/index.ts",
"lint": "pnpm run '/^(lint:biome|lint:eslint)$/'",
"lint:biome": "biome check .",
"lint:eslint": "eslint --ext .ts,.tsx .",
"lint:eslint": "eslint .",
"lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'",
"lint:eslint:fix": "eslint --ext .ts,.tsx . --fix",
"lint:eslint:fix": "eslint . --fix",
"lint:biome:fix": "biome check . --apply",
"prepare": "npm run build",
"build": "tsc",
Expand All @@ -28,24 +28,24 @@
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
},
"dependencies": {
"mathjs": "^12.4.2",
"mathjs": "^13.2.0",
"ts-gaussian": "^3.0.4",
"uuid": "^9.0.1"
"uuid": "^11.0.2"
},
"devDependencies": {
"@biomejs/biome": "1.7.2",
"@ctrl/eslint-config-biome": "2.6.7",
"@sindresorhus/tsconfig": "5.0.0",
"@biomejs/biome": "1.9.4",
"@ctrl/eslint-config-biome": "4.2.10",
"@sindresorhus/tsconfig": "6.0.0",
"@types/benchmark": "2.1.5",
"@types/lodash": "4.17.0",
"@types/node": "20.12.7",
"@types/uuid": "9.0.8",
"@vitest/coverage-v8": "1.5.3",
"@types/lodash": "4.17.13",
"@types/node": "22.8.6",
"@types/uuid": "10.0.0",
"@vitest/coverage-v8": "2.1.4",
"benchmark": "2.1.4",
"lodash": "4.17.21",
"typedoc": "0.25.13",
"typescript": "5.4.5",
"vitest": "1.5.3"
"typedoc": "0.26.10",
"typescript": "5.6.3",
"vitest": "2.1.4"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit 9b0fb0e

Please sign in to comment.