Skip to content

Commit

Permalink
fix: 修复ts类型报错
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhao1999 committed Sep 7, 2022
1 parent d734c12 commit 6e953a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
"plugin:vue/vue3-recommended", // vue3默认的推荐规范
"plugin:@typescript-eslint/recommended", // eslint/typescript 默认的推荐规范
"plugin:prettier/recommended", // 插件约束规范 解决eslint和prettier的冲突问题
"./.eslintrc-auto-import.json" // 自动导入规范
"./.eslintrc-auto-import.json", // 自动导入规范
"./.vite-auto-define.json" // vite导出全局变量
],
parserOptions: {
ecmaVersion: "latest",
Expand Down
5 changes: 5 additions & 0 deletions .vite-auto-define.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"globals": {
"__APP_INFO__": true
}
}

0 comments on commit 6e953a5

Please sign in to comment.