From b28a81b85dd9ef82ba49c2cb000fdb16f8681673 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 6 Sep 2024 17:04:10 +0200 Subject: [PATCH] chore: Adjust Typescript configs Signed-off-by: Ferdinand Thiessen --- cypress/tsconfig.json | 10 +++++++++- tsconfig.json | 20 +++++++++----------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 0e2edaca5..cff033a4a 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,4 +1,12 @@ { "extends": "../tsconfig.json", - "include": ["./**/*.ts"], + "include": ["../*.ts", "."], + "compilerOptions": { + "rootDir": "..", + "types": [ + "cypress", + "dockerode", + "node" + ] + } } diff --git a/tsconfig.json b/tsconfig.json index acfeb7620..1bd4175b4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,15 @@ { "extends": "@vue/tsconfig/tsconfig.json", - "include": ["./src/**.ts", "*.ts"], + "include": ["./src"], "compilerOptions": { - "types": ["cypress", "cypress-visual-regression", "node", "dockerode", "@nextcloud/typings"], - "target": "ESNext", - "module": "esnext", - "moduleResolution": "Bundler", - // Allow ts to import js files - "allowJs": true, - "allowSyntheticDefaultImports": true, - "declaration": false, + "lib": [ + "DOM", + "ES2015" + ], + "rootDir": "src", "noImplicitAny": false, - "resolveJsonModule": true, - "strict": true, }, + "vueCompilerOptions": { + "target": 2.7 + } }