From 5eec9f35af26e34a6ec8159c53fcc1d882470c91 Mon Sep 17 00:00:00 2001 From: Chris Merry Date: Mon, 30 Mar 2026 23:24:16 +0100 Subject: [PATCH 1/2] Fix pnpm lint failing to load TypeScript config Add .npmrc with --experimental-strip-types so Node 22 can load vite.config.ts when pnpm spawns the vp binary. Also suppress no-floating-promises warning in time.spec.ts with void operator. Co-Authored-By: Claude Opus 4.6 (1M context) --- .npmrc | 1 + src/utils/__tests__/time.spec.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..489ae2d --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +node-options="--experimental-strip-types" diff --git a/src/utils/__tests__/time.spec.ts b/src/utils/__tests__/time.spec.ts index 8713e81..9ad1ac0 100644 --- a/src/utils/__tests__/time.spec.ts +++ b/src/utils/__tests__/time.spec.ts @@ -5,7 +5,7 @@ describe('pause', () => { it('resolves after the specified duration', async () => { vi.useFakeTimers(); let resolved = false; - pause(1000).then(() => { + void pause(1000).then(() => { resolved = true; }); From 8de77cb4bbea1ec4237d1efe0318ae19b4f6e3bc Mon Sep 17 00:00:00 2001 From: Chris Merry Date: Mon, 30 Mar 2026 23:24:55 +0100 Subject: [PATCH 2/2] Add lint step to CI pipeline Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 675a4de..98a7048 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,5 +18,8 @@ jobs: - name: Install dependencies run: pnpm install + - name: Lint + run: pnpm run lint + - name: Unit tests run: pnpm run test:unit