From 2e90b9146431eea88cbf9558815652b9f745baa9 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Mon, 26 Sep 2022 17:12:05 +0200 Subject: [PATCH] feat: add typescript configs --- env.d.ts | 1 + tsconfig.config.json | 8 ++++++++ tsconfig.json | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 env.d.ts create mode 100644 tsconfig.config.json create mode 100644 tsconfig.json diff --git a/env.d.ts b/env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.config.json b/tsconfig.config.json new file mode 100644 index 0000000..c2d3a30 --- /dev/null +++ b/tsconfig.config.json @@ -0,0 +1,8 @@ +{ + "extends": "@vue/tsconfig/tsconfig.node.json", + "include": ["vite.config.*", "vitest.config.*", "cypress.config.*"], + "compilerOptions": { + "composite": true, + "types": ["node"] + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..8d23599 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@vue/tsconfig/tsconfig.web.json", + "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + + "references": [ + { + "path": "./tsconfig.config.json" + } + ] +}