chore(tests): cleanup tsconfig

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-22 19:42:33 +01:00
committed by Braks
parent eea05f9738
commit 98db749e51
5 changed files with 36 additions and 24 deletions

View File

@@ -1,4 +1,7 @@
// Generated by 'unplugin-auto-import'
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-auto-import
export {}
declare global {
const $$: typeof import('vue/macros')['$$']
@@ -165,7 +168,6 @@ declare global {
const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint']
const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle']
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']
@@ -377,3 +379,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'
}

6
pnpm-lock.yaml generated
View File

@@ -384,6 +384,7 @@ importers:
tests:
specifiers:
'@tooling/eslint-config': workspace:*
'@tooling/tsconfig': workspace:*
'@vitejs/plugin-vue': ^4.0.0
'@vue-flow/background': workspace:*
'@vue-flow/controls': workspace:*
@@ -391,16 +392,19 @@ importers:
'@vue-flow/minimap': workspace:*
cypress: ^12.3.0
eslint-plugin-chai-friendly: ^0.7.2
vite: ^4.1.4
dependencies:
'@tooling/eslint-config': link:../tooling/eslint-config
'@vue-flow/background': link:../packages/background
'@vue-flow/controls': link:../packages/controls
'@vue-flow/core': link:../packages/core
'@vue-flow/minimap': link:../packages/minimap
devDependencies:
'@tooling/eslint-config': link:../tooling/eslint-config
'@tooling/tsconfig': link:../tooling/tsconfig
'@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47
cypress: 12.6.0
eslint-plugin-chai-friendly: 0.7.2_eslint@8.34.0
vite: 4.1.4
tooling/eslint-config:
specifiers:

View File

@@ -10,12 +10,14 @@
"@vue-flow/background": "workspace:*",
"@vue-flow/controls": "workspace:*",
"@vue-flow/core": "workspace:*",
"@tooling/eslint-config": "workspace:*",
"@vue-flow/minimap": "workspace:*"
},
"devDependencies": {
"@tooling/eslint-config": "workspace:*",
"@tooling/tsconfig": "workspace:*",
"@vitejs/plugin-vue": "^4.0.0",
"cypress": "^12.3.0",
"eslint-plugin-chai-friendly": "^0.7.2",
"@vitejs/plugin-vue": "^4.0.0"
"vite": "^4.1.4",
"eslint-plugin-chai-friendly": "^0.7.2"
}
}

View File

@@ -1,25 +1,13 @@
{
"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"
],
},
"references": [
{
"path": "./tsconfig.node.json"
}
]
}

11
tests/tsconfig.node.json Normal file
View File

@@ -0,0 +1,11 @@
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"],
"files": ["package.json"]
}