From 5ef7168a7fb3aca8cc372b94ef72ba526ffd5890 Mon Sep 17 00:00:00 2001 From: Bang <15622356989@163.com> Date: Mon, 25 Jul 2022 09:12:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9ts=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 1 + env.d.ts | 2 ++ tsconfig.json | 10 +++++----- tsconfig.node.json | 9 --------- 4 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 tsconfig.node.json diff --git a/.eslintrc.js b/.eslintrc.js index a03e9c69b..6558e693c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,6 +25,7 @@ module.exports = { 'no-debugger': 'error', 'no-var': 'error', 'no-unused-vars': 'error', + 'no-multiple-empty-lines': 'error', eqeqeq: 'error', '@typescript-eslint/no-explicit-any': 'off', 'vue/no-v-model-argument': 'off', diff --git a/env.d.ts b/env.d.ts index 7c309c459..05255bd28 100644 --- a/env.d.ts +++ b/env.d.ts @@ -12,3 +12,5 @@ declare module '*.gif'; declare module '*.bmp'; declare module '*.tiff'; declare module '*.json'; +declare module '*.md'; +declare module '*.mp4'; diff --git a/tsconfig.json b/tsconfig.json index 42cf44711..613cdad10 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,10 @@ { "compilerOptions": { "target": "esnext", - "useDefineForClassFields": true, "module": "esnext", "moduleResolution": "node", + "useDefineForClassFields": true, + "allowSyntheticDefaultImports": true, "strict": true, "jsx": "preserve", "sourceMap": true, @@ -16,16 +17,15 @@ "@/*": ["./app/.vitepress/src/*"], "opendesign": ["./opendesign"] }, - "types": ["unplugin-icons/types/vue", "element-plus/global"] + "types": ["unplugin-icons/types/vue", "element-plus/global", "node"] }, "include": [ + "./env.d.ts", "app/.vitepress/**/*.ts", "app/.vitepress/**/*.d.ts", "app/.vitepress/**/*.tsx", "app/.vitepress/**/*.vue", - "./env.d.ts", "app/.vitepress/config.js", "app/.vitepress/theme/index.ts" - ], - "references": [{ "path": "./tsconfig.node.json" }] + ] } diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index 66077603a..000000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "module": "esnext", - "moduleResolution": "node", - "allowSyntheticDefaultImports": true, - "types": ["node"] - } -} -- Gitee