Skip to content

Commit dff4da7

Browse files
committed
feat: switch to biomejs
1 parent 3ff268c commit dff4da7

Some content is hidden

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

63 files changed

+2344
-2014
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,9 @@ jobs:
2626
uses: actions/checkout@v4
2727

2828
- name: Set up Node.js
29-
uses: actions/setup-node@v4
29+
uses: labd/gh-actions-typescript/pnpm-install@main
3030
with:
31-
node-version: 22
32-
33-
- uses: pnpm/action-setup@v4
34-
name: Install pnpm
35-
id: pnpm-install
36-
with:
37-
run_install: true
31+
node-version: ${{ matrix.node }}
3832

3933
- name: Check formatting and typing
4034
run: pnpm check
@@ -88,15 +82,7 @@ jobs:
8882
uses: actions/checkout@v4
8983

9084
- name: Set up Node.js
91-
uses: actions/setup-node@v4
92-
with:
93-
node-version: 22
94-
95-
- uses: pnpm/action-setup@v4
96-
name: Install pnpm
97-
id: pnpm-install
98-
with:
99-
run_install: true
85+
uses: labd/gh-actions-typescript/pnpm-install@main
10086

10187
- name: Run build
10288
run: pnpm build

biome.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"ignore": ["vendor/*"],
10+
"ignore": ["vendor/*", "dist/*"],
1111
"include": ["src/**/*"]
1212
},
1313
"formatter": {
@@ -21,9 +21,18 @@
2121
"enabled": true,
2222
"rules": {
2323
"recommended": true,
24+
"complexity": {
25+
"noForEach": "off"
26+
},
27+
"style": {
28+
"noNonNullAssertion": "off",
29+
"noParameterAssign": "off"
30+
},
2431
"suspicious": {
2532
"noConsoleLog": "error",
26-
"noExplicitAny": "off"
33+
"noImplicitAnyLet": "off",
34+
"noExplicitAny": "off",
35+
"noExportsInTest": "off"
2736
}
2837
}
2938
},

package.json

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -21,66 +21,59 @@
2121
"scripts": {
2222
"build": "tsup",
2323
"build:server": "esbuild src/server.ts --bundle --outfile=dist/server.js --platform=node",
24-
"check": "pnpm lint && tsc",
25-
"format": "eslint src --fix ; prettier --write .",
26-
"lint": "eslint src && prettier --check .",
24+
"check": "biome check && tsc",
25+
"format": "biome format --fix",
26+
"lint": "biome check",
2727
"publish:ci": "pnpm build && pnpm changeset publish",
28+
"publish:version": "pnpm changeset version && pnpm format",
2829
"start": "tsup src/server.ts --watch --onSuccess 'node dist/server'",
2930
"test": "vitest run",
3031
"test:ci": "vitest run --coverage"
3132
},
3233
"dependencies": {
33-
"basic-auth": "^2.0.1",
34-
"body-parser": "^1.20.2",
34+
"@biomejs/biome": "^1.9.4",
35+
"basic-auth": "2.0.1",
36+
"body-parser": "1.20.2",
3537
"decimal.js": "10.4.3",
36-
"deep-equal": "^2.2.3",
37-
"express": "^4.21.1",
38-
"light-my-request": "^5.11.1",
39-
"lodash.isequal": "^4.5.0",
40-
"morgan": "^1.10.0",
41-
"msw": "^2.5.0",
42-
"uuid": "^9.0.1",
43-
"zod": "^3.22.4",
44-
"zod-validation-error": "^3.0.2"
38+
"deep-equal": "2.2.3",
39+
"express": "4.21.1",
40+
"light-my-request": "5.11.1",
41+
"lodash.isequal": "4.5.0",
42+
"morgan": "1.10.0",
43+
"msw": "2.5.0",
44+
"uuid": "9.0.1",
45+
"zod": "3.22.4",
46+
"zod-validation-error": "3.0.2"
4547
},
4648
"devDependencies": {
47-
"@changesets/changelog-github": "^0.5.0",
48-
"@changesets/cli": "^2.27.1",
49+
"@changesets/changelog-github": "0.5.0",
50+
"@changesets/cli": "2.27.1",
4951
"@commercetools/platform-sdk": "8.8.0",
50-
"@stylistic/eslint-plugin": "^1.6.2",
51-
"@types/basic-auth": "^1.1.8",
52-
"@types/body-parser": "^1.19.5",
53-
"@types/deep-equal": "^1.0.4",
54-
"@types/express": "^4.17.21",
55-
"@types/express-serve-static-core": "^4.17.43",
56-
"@types/lodash.isequal": "^4.5.8",
57-
"@types/morgan": "^1.9.9",
58-
"@types/node": "^20.16.14",
59-
"@types/qs": "^6.9.11",
60-
"@types/supertest": "^6.0.2",
61-
"@types/uuid": "^9.0.8",
62-
"@typescript-eslint/eslint-plugin": "^7.0.2",
63-
"@typescript-eslint/parser": "^7.0.2",
52+
"@types/basic-auth": "1.1.8",
53+
"@types/body-parser": "1.19.5",
54+
"@types/deep-equal": "1.0.4",
55+
"@types/express": "4.17.21",
56+
"@types/express-serve-static-core": "4.17.43",
57+
"@types/lodash.isequal": "4.5.8",
58+
"@types/morgan": "1.9.9",
59+
"@types/node": "20.16.14",
60+
"@types/qs": "6.9.11",
61+
"@types/supertest": "6.0.2",
62+
"@types/uuid": "9.0.8",
6463
"@vitest/coverage-v8": "3.0.2",
65-
"esbuild": "^0.20.1",
66-
"eslint": "^8.57.1",
67-
"eslint-plugin-sort-class-members": "^1.21.0",
68-
"eslint-plugin-unused-imports": "^3.1.0",
69-
"fishery": "^2.2.2",
70-
"got": "^14.2.0",
71-
"husky": "^9.0.11",
72-
"prettier": "^3.2.5",
73-
"prettier-plugin-organize-imports": "^3.2.4",
74-
"prettier-plugin-packagejson": "^2.5.3",
75-
"supertest": "^6.3.4",
76-
"timekeeper": "^2.3.1",
77-
"ts-node": "^10.9.2",
78-
"tslib": "^2.8.0",
79-
"tsup": "^8.0.2",
80-
"typescript": "^5.6.3",
64+
"esbuild": "0.20.1",
65+
"fishery": "2.2.2",
66+
"got": "14.2.0",
67+
"husky": "9.0.11",
68+
"supertest": "6.3.4",
69+
"timekeeper": "2.3.1",
70+
"ts-node": "10.9.2",
71+
"tslib": "2.8.0",
72+
"tsup": "8.0.2",
73+
"typescript": "5.8.3",
8174
"vitest": "3.0.2"
8275
},
83-
"packageManager": "pnpm@9.6.0",
76+
"packageManager": "pnpm@10.8.0",
8477
"engines": {
8578
"node": ">=18",
8679
"pnpm": ">=9.0.2"

0 commit comments

Comments
 (0)