From 0a0efb4c8fddb204719c03a02c413bc47fe5645f Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 22 Feb 2023 19:45:02 +0100 Subject: [PATCH] chore(docs): cleanup tsconfig Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- docs/package.json | 1 + docs/src/auto-imports.d.ts | 11 +++++++++-- docs/tsconfig.json | 23 +++++++---------------- pnpm-lock.yaml | 2 ++ 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/docs/package.json b/docs/package.json index 86acf308..44dd92bb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -33,6 +33,7 @@ "@types/canvas-confetti": "^1.6.0", "@types/node": "^18.14.0", "@tooling/eslint-config": "workspace:*", + "@tooling/tsconfig": "workspace:*", "@windicss/plugin-scrollbar": "^1.2.3", "dotenv": "^16.0.3", "ohmyfetch": "^0.4.21", diff --git a/docs/src/auto-imports.d.ts b/docs/src/auto-imports.d.ts index 1d85e637..f7f8b0ea 100644 --- a/docs/src/auto-imports.d.ts +++ b/docs/src/auto-imports.d.ts @@ -1,4 +1,7 @@ -// Generated by 'unplugin-auto-import' +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-auto-import export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] @@ -72,7 +75,6 @@ declare global { const refThrottled: typeof import('@vueuse/core')['refThrottled'] const refWithControl: typeof import('@vueuse/core')['refWithControl'] const resolveComponent: typeof import('vue')['resolveComponent'] - const resolveDirective: typeof import('vue')['resolveDirective'] const resolveRef: typeof import('@vueuse/core')['resolveRef'] const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] const shallowReactive: typeof import('vue')['shallowReactive'] @@ -263,3 +265,8 @@ declare global { const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter'] const whenever: typeof import('@vueuse/core')['whenever'] } +// for type re-export +declare global { + // @ts-ignore + export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue' +} diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 2a501060..1bc424d7 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,21 +1,12 @@ { + "extends": "@tooling/tsconfig/base", "compilerOptions": { "baseUrl": ".", - "module": "ESNext", - "target": "es2017", - "lib": ["DOM", "ESNext"], - "noEmit": true, - "declaration": false, - "strict": true, - "esModuleInterop": true, - "incremental": false, - "skipLibCheck": true, - "moduleResolution": "node", "resolveJsonModule": true, - "noUnusedLocals": false, - "strictNullChecks": true, - "forceConsistentCasingInFileNames": true, - "types": ["vite/client", "@types/node", "unplugin-icons/types/vue"] - }, - "exclude": ["node_modules", "dist"] + "types": [ + "vite/client", + "@types/node", + "unplugin-icons/types/vue" + ] + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0bbea17..d5e94a48 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,7 @@ importers: '@iconify/json': ^2.1.95 '@stackblitz/sdk': ^1.8.2 '@tooling/eslint-config': workspace:* + '@tooling/tsconfig': workspace:* '@types/canvas-confetti': ^1.6.0 '@types/node': ^18.14.0 '@vercel/analytics': ^0.1.10 @@ -73,6 +74,7 @@ importers: devDependencies: '@iconify/json': 2.2.26 '@tooling/eslint-config': link:../tooling/eslint-config + '@tooling/tsconfig': link:../tooling/tsconfig '@types/canvas-confetti': 1.6.0 '@types/node': 18.14.0 '@windicss/plugin-scrollbar': 1.2.3