Skip to content

Commit 0a0efb4

Browse files
committed
chore(docs): cleanup tsconfig
Signed-off-by: braks <[email protected]>
1 parent 98db749 commit 0a0efb4

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@types/canvas-confetti": "^1.6.0",
3434
"@types/node": "^18.14.0",
3535
"@tooling/eslint-config": "workspace:*",
36+
"@tooling/tsconfig": "workspace:*",
3637
"@windicss/plugin-scrollbar": "^1.2.3",
3738
"dotenv": "^16.0.3",
3839
"ohmyfetch": "^0.4.21",

docs/src/auto-imports.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// Generated by 'unplugin-auto-import'
1+
/* eslint-disable */
2+
/* prettier-ignore */
3+
// @ts-nocheck
4+
// Generated by unplugin-auto-import
25
export {}
36
declare global {
47
const EffectScope: typeof import('vue')['EffectScope']
@@ -72,7 +75,6 @@ declare global {
7275
const refThrottled: typeof import('@vueuse/core')['refThrottled']
7376
const refWithControl: typeof import('@vueuse/core')['refWithControl']
7477
const resolveComponent: typeof import('vue')['resolveComponent']
75-
const resolveDirective: typeof import('vue')['resolveDirective']
7678
const resolveRef: typeof import('@vueuse/core')['resolveRef']
7779
const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
7880
const shallowReactive: typeof import('vue')['shallowReactive']
@@ -263,3 +265,8 @@ declare global {
263265
const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
264266
const whenever: typeof import('@vueuse/core')['whenever']
265267
}
268+
// for type re-export
269+
declare global {
270+
// @ts-ignore
271+
export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue'
272+
}

docs/tsconfig.json

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
{
2+
"extends": "@tooling/tsconfig/base",
23
"compilerOptions": {
34
"baseUrl": ".",
4-
"module": "ESNext",
5-
"target": "es2017",
6-
"lib": ["DOM", "ESNext"],
7-
"noEmit": true,
8-
"declaration": false,
9-
"strict": true,
10-
"esModuleInterop": true,
11-
"incremental": false,
12-
"skipLibCheck": true,
13-
"moduleResolution": "node",
145
"resolveJsonModule": true,
15-
"noUnusedLocals": false,
16-
"strictNullChecks": true,
17-
"forceConsistentCasingInFileNames": true,
18-
"types": ["vite/client", "@types/node", "unplugin-icons/types/vue"]
19-
},
20-
"exclude": ["node_modules", "dist"]
6+
"types": [
7+
"vite/client",
8+
"@types/node",
9+
"unplugin-icons/types/vue"
10+
]
11+
}
2112
}

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)