Skip to content

Commit 37a3d2b

Browse files
committed
chore: update typecheck and tsconfig
1 parent 6aa8a6d commit 37a3d2b

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"lint": "eslint .",
4141
"release": "bumpp && npm publish",
4242
"test": "vitest",
43-
"typecheck": "tsc --noEmit",
44-
"prepare": "simple-git-hooks && pnpm astro sync",
43+
"typecheck": "astro check --minimumSeverity warning --noSync && pnpm --filter docs typecheck",
44+
"prepare": "simple-git-hooks",
4545
"docs": "nr -C docs dev",
4646
"docs:build": "nr -C docs build"
4747
},

tsconfig.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
{
2+
"extends": "astro/tsconfigs/strict",
23
"compilerOptions": {
3-
"target": "ESNext",
4-
"lib": [
5-
"ESNext"
6-
],
7-
"module": "ESNext",
8-
"moduleResolution": "Bundler",
9-
"resolveJsonModule": true,
10-
"strict": true,
11-
"strictNullChecks": true,
12-
"noEmit": true,
13-
"esModuleInterop": true,
14-
"skipDefaultLibCheck": true,
15-
"skipLibCheck": true
4+
"jsx": "preserve",
5+
"checkJs": true
166
},
17-
"exclude": [
18-
"docs"
19-
]
7+
"include": ["src"]
208
}

0 commit comments

Comments
 (0)