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 {} export {}
declare global { declare global {
const $$: typeof import('vue/macros')['$$'] const $$: typeof import('vue/macros')['$$']
@@ -165,7 +168,6 @@ declare global {
const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint'] const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint']
const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle'] const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle']
const resolveComponent: typeof import('vue')['resolveComponent'] const resolveComponent: typeof import('vue')['resolveComponent']
const resolveDirective: typeof import('vue')['resolveDirective']
const resolveRef: typeof import('@vueuse/core')['resolveRef'] const resolveRef: typeof import('@vueuse/core')['resolveRef']
const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
const shallowReactive: typeof import('vue')['shallowReactive'] const shallowReactive: typeof import('vue')['shallowReactive']
@@ -377,3 +379,8 @@ declare global {
const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter'] const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
const whenever: typeof import('@vueuse/core')['whenever'] 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: tests:
specifiers: specifiers:
'@tooling/eslint-config': workspace:* '@tooling/eslint-config': workspace:*
'@tooling/tsconfig': workspace:*
'@vitejs/plugin-vue': ^4.0.0 '@vitejs/plugin-vue': ^4.0.0
'@vue-flow/background': workspace:* '@vue-flow/background': workspace:*
'@vue-flow/controls': workspace:* '@vue-flow/controls': workspace:*
@@ -391,16 +392,19 @@ importers:
'@vue-flow/minimap': workspace:* '@vue-flow/minimap': workspace:*
cypress: ^12.3.0 cypress: ^12.3.0
eslint-plugin-chai-friendly: ^0.7.2 eslint-plugin-chai-friendly: ^0.7.2
vite: ^4.1.4
dependencies: dependencies:
'@tooling/eslint-config': link:../tooling/eslint-config
'@vue-flow/background': link:../packages/background '@vue-flow/background': link:../packages/background
'@vue-flow/controls': link:../packages/controls '@vue-flow/controls': link:../packages/controls
'@vue-flow/core': link:../packages/core '@vue-flow/core': link:../packages/core
'@vue-flow/minimap': link:../packages/minimap '@vue-flow/minimap': link:../packages/minimap
devDependencies: 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 '@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47
cypress: 12.6.0 cypress: 12.6.0
eslint-plugin-chai-friendly: 0.7.2_eslint@8.34.0 eslint-plugin-chai-friendly: 0.7.2_eslint@8.34.0
vite: 4.1.4
tooling/eslint-config: tooling/eslint-config:
specifiers: specifiers:

View File

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

View File

@@ -1,25 +1,13 @@
{ {
"extends": "@tooling/tsconfig/base",
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"module": "ESNext",
"target": "es2017",
"lib": [
"DOM",
"ESNext"
],
"noEmit": true, "noEmit": true,
"declaration": false, "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"]
}