diff --git a/.eslintrc.js b/.eslintrc.js index a03e9c69b92bb5151cce6ae5a2157ab21f19f56e..6558e693cbee944897b91469ab33141a6cf5abf8 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 7c309c459563e03eb4ac154f94f7966543f395e7..05255bd28b9aede6ded98e0dc936beb7c51d45d1 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 42cf44711bee4ee17e50c5c2bb0431105d764f62..613cdad100fa03fe71a9f419a6208e153c16766f 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 66077603ad8e1af486ac9d78aaf018e2c9c90497..0000000000000000000000000000000000000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "module": "esnext", - "moduleResolution": "node", - "allowSyntheticDefaultImports": true, - "types": ["node"] - } -}