Skip to content

Commit c93c336

Browse files
committed
chore: add typescript
1 parent dc6877d commit c93c336

File tree

6 files changed

+127
-122
lines changed

6 files changed

+127
-122
lines changed

.github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
- name: Formatting Check
4343
run: pnpm format:check
4444

45-
# - name: Typecheck
46-
# if: success() || failure()
47-
# run: pnpm typecheck
45+
- name: Typecheck
46+
if: success() || failure()
47+
run: pnpm typecheck
4848

4949
# - name: Lint Styles
5050
# if: success() || failure()

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"editor.codeActionsOnSave": {
33
"source.fixAll": "explicit"
44
},
5-
"editor.formatOnSave": true
5+
"editor.formatOnSave": true,
6+
"typescript.tsdk": "node_modules/typescript/lib"
67
}

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import vitest from '@vitest/eslint-plugin'
33

44
/** @type {import('eslint').Linter.Config[]} */
55
export default [
6-
...tpConfig.configs.base,
6+
...tpConfig.configs.baseTypeChecked,
77
{
88
files: ['**/*.test.{js,ts}'],
99
ignores: ['fixtures/**/*'],

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
"preinstall": "npx only-allow pnpm",
1414
"postinstall": "$CI = true || (dependabot-config && editor-config)",
1515
"check-docs": "remark --frail . --ext md,markdown,mdx",
16-
"checks": "pnpm check-docs && pnpm format:check && pnpm lint",
16+
"checks": "pnpm check-docs && pnpm format:check && pnpm typecheck && pnpm lint",
1717
"format": "pnpm format:check --write",
1818
"format:check": "prettier --check --ignore-unknown \"**/*\"",
19+
"typecheck": "tsc",
1920
"lint": "eslint --max-warnings 0",
2021
"lint:fix": "pnpm lint --fix",
2122
"coverage": "vitest run --coverage",
@@ -59,6 +60,7 @@
5960
"remark-cli": "^12.0.1",
6061
"rollup": "^4.52.4",
6162
"semantic-release": "^24.2.9",
63+
"typescript": "^5.9.3",
6264
"vitest": "^3.2.4",
6365
"webpack": "^5.102.0",
6466
"webpack-cli": "^6.0.1"

0 commit comments

Comments
 (0)