Skip to content

Commit 98db749

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

File tree

5 files changed

+36
-24
lines changed

5 files changed

+36
-24
lines changed

packages/core/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 $$: typeof import('vue/macros')['$$']
@@ -165,7 +168,6 @@ declare global {
165168
const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint']
166169
const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle']
167170
const resolveComponent: typeof import('vue')['resolveComponent']
168-
const resolveDirective: typeof import('vue')['resolveDirective']
169171
const resolveRef: typeof import('@vueuse/core')['resolveRef']
170172
const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
171173
const shallowReactive: typeof import('vue')['shallowReactive']
@@ -377,3 +379,8 @@ declare global {
377379
const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
378380
const whenever: typeof import('@vueuse/core')['whenever']
379381
}
382+
// for type re-export
383+
declare global {
384+
// @ts-ignore
385+
export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue'
386+
}

pnpm-lock.yaml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
"@vue-flow/background": "workspace:*",
1111
"@vue-flow/controls": "workspace:*",
1212
"@vue-flow/core": "workspace:*",
13-
"@tooling/eslint-config": "workspace:*",
1413
"@vue-flow/minimap": "workspace:*"
1514
},
1615
"devDependencies": {
16+
"@tooling/eslint-config": "workspace:*",
17+
"@tooling/tsconfig": "workspace:*",
18+
"@vitejs/plugin-vue": "^4.0.0",
1719
"cypress": "^12.3.0",
18-
"eslint-plugin-chai-friendly": "^0.7.2",
19-
"@vitejs/plugin-vue": "^4.0.0"
20+
"vite": "^4.1.4",
21+
"eslint-plugin-chai-friendly": "^0.7.2"
2022
}
2123
}

tests/tsconfig.json

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

tests/tsconfig.node.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"module": "esnext",
5+
"moduleResolution": "node",
6+
"resolveJsonModule": true,
7+
"allowSyntheticDefaultImports": true
8+
},
9+
"include": ["vite.config.ts"],
10+
"files": ["package.json"]
11+
}

0 commit comments

Comments
 (0)