From ac4707a731c2254a76754b371f185be6c481a7f9 Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Sat, 13 Dec 2025 11:20:05 +0900 Subject: [PATCH] Enable strict type checking --- .github/workflows/ts.yaml | 1 + biome.json | 2 +- package.json | 2 ++ pnpm-lock.yaml | 10 ++++++++++ tsconfig.json | 2 +- 5 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ts.yaml b/.github/workflows/ts.yaml index 278e5f34..d2fc22a5 100644 --- a/.github/workflows/ts.yaml +++ b/.github/workflows/ts.yaml @@ -33,6 +33,7 @@ jobs: - run: npm install -g pnpm@latest-10 - run: pnpm i - run: pnpm run test + - run: pnpm run typecheck generate: runs-on: ubuntu-latest diff --git a/biome.json b/biome.json index 7044f762..bf8ecb8a 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.2.6/schema.json", + "$schema": "https://biomejs.dev/schemas/2.3.8/schema.json", "vcs": { "enabled": true, "clientKind": "git", diff --git a/package.json b/package.json index f36878b0..aaa66d24 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "private": true, "scripts": { "build": "ncc build --source-map --license licenses.txt src/index.ts", + "typecheck": "tsc --noEmit", "test": "vitest" }, "type": "module", @@ -17,6 +18,7 @@ "devDependencies": { "@biomejs/biome": "2.3.8", "@tsconfig/node20": "20.1.8", + "@tsconfig/strictest": "2.0.8", "@types/node": "20.19.25", "@vercel/ncc": "0.38.4", "pnpm": "10.24.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8aa1cb53..e3d225d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,6 +36,9 @@ importers: '@tsconfig/node20': specifier: 20.1.8 version: 20.1.8 + '@tsconfig/strictest': + specifier: 2.0.8 + version: 2.0.8 '@types/node': specifier: 20.19.25 version: 20.19.25 @@ -547,11 +550,13 @@ packages: resolution: {integrity: sha512-wG9e2XtIhd++QugU5MD9i7OnpaVb08ji3P1y/hNbxrQ3sYEelKJOq1UJ5dXczeo6Hj2rfDEL5GdtkMSVLa/AOg==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.40.0': resolution: {integrity: sha512-vgXfWmj0f3jAUvC7TZSU/m/cOE558ILWDzS7jBhiCAFpY2WEBn5jqgbqvmzlMjtp8KlLcBlXVD2mkTSEQE6Ixw==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.40.0': resolution: {integrity: sha512-uJkYTugqtPZBS3Z136arevt/FsKTF/J9dEMTX/cwR7lsAW4bShzI2R0pJVw+hcBTWF4dxVckYh72Hk3/hWNKvA==} @@ -599,6 +604,9 @@ packages: '@tsconfig/node20@20.1.8': resolution: {integrity: sha512-Em+IdPfByIzWRRpqWL4Z7ArLHZGxmc36BxE3jCz9nBFSm+5aLaPMZyjwu4yetvyKXeogWcxik4L1jB5JTWfw7A==} + '@tsconfig/strictest@2.0.8': + resolution: {integrity: sha512-XnQ7vNz5HRN0r88GYf1J9JJjqtZPiHt2woGJOo2dYqyHGGcd6OLGqSlBB6p1j9mpzja6Oe5BoPqWmeDx6X9rLw==} + '@types/chai@5.2.2': resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} @@ -1859,6 +1867,8 @@ snapshots: '@tsconfig/node20@20.1.8': {} + '@tsconfig/strictest@2.0.8': {} + '@types/chai@5.2.2': dependencies: '@types/deep-eql': 4.0.2 diff --git a/tsconfig.json b/tsconfig.json index 92ebc1fd..4022b050 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,4 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@tsconfig/node20/tsconfig.json" + "extends": ["@tsconfig/node20/tsconfig.json", "@tsconfig/strictest/tsconfig.json"] }