Skip to content

Commit 961a7c0

Browse files
Royal-lobsterclaude
andcommitted
Switch to pnpm, add Biome for linting and formatting
- Replaced npm with pnpm across package.json scripts and CI workflows - Added @biomejs/biome with project-specific config (space indent, single quotes, no semicolons, parameter decorators enabled for NestJS) - Auto-fixed all formatting and lint issues across 24 source files - Updated CI to use pnpm/action-setup, release workflow uses pnpm - Added lint and lint:fix scripts, separated typecheck from lint - Removed package-lock.json, added pnpm-lock.yaml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fc27394 commit 961a7c0

32 files changed

Lines changed: 3260 additions & 4033 deletions

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,28 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
version: 9
23+
1924
- name: Use Node.js ${{ matrix.node-version }}
2025
uses: actions/setup-node@v4
2126
with:
2227
node-version: ${{ matrix.node-version }}
23-
cache: npm
28+
cache: pnpm
2429

2530
- name: Install dependencies
26-
run: npm ci
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Lint
34+
run: pnpm run lint
2735

2836
- name: Type check
29-
run: npm run lint
37+
run: pnpm run typecheck
3038

3139
- name: Run tests
32-
run: npm test
40+
run: pnpm test
3341

3442
- name: Build
35-
run: npm run build
43+
run: pnpm run build

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,32 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 9
25+
2126
- name: Use Node.js 22
2227
uses: actions/setup-node@v4
2328
with:
2429
node-version: 22
25-
cache: npm
30+
cache: pnpm
2631
registry-url: https://registry.npmjs.org
2732

2833
- name: Install dependencies
29-
run: npm ci
34+
run: pnpm install --frozen-lockfile
3035

3136
- name: Run tests
32-
run: npm test
37+
run: pnpm test
3338

3439
- name: Build
35-
run: npm run build
40+
run: pnpm run build
3641

3742
- name: Create Release Pull Request or Publish
3843
id: changesets
3944
uses: changesets/action@v1
4045
with:
41-
publish: npx changeset publish
46+
publish: pnpm run release
4247
title: 'chore: version packages'
4348
commit: 'chore: version packages'
4449
env:

biome.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"recommended": true,
7+
"suspicious": {
8+
"noExplicitAny": "off"
9+
},
10+
"style": {
11+
"noNonNullAssertion": "off"
12+
}
13+
}
14+
},
15+
"formatter": {
16+
"enabled": true,
17+
"indentStyle": "space",
18+
"indentWidth": 2,
19+
"lineWidth": 100
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "single",
24+
"semicolons": "asNeeded"
25+
},
26+
"parser": {
27+
"unsafeParameterDecoratorsEnabled": true
28+
}
29+
},
30+
"assist": {
31+
"actions": {
32+
"source": {
33+
"organizeImports": "on"
34+
}
35+
}
36+
},
37+
"files": {
38+
"includes": ["src/**"]
39+
}
40+
}

0 commit comments

Comments
 (0)