Skip to content

Commit

Permalink
fix: tsconfig move
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Apr 6, 2022
1 parent 0c6f292 commit 71a1f94
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
root: true,
Expand All @@ -13,8 +13,8 @@ module.exports = {
'vue/setup-compiler-macros': true,
},
rules: {
'prettier/prettier': ['error', { semi: false, singleQuote: true, printWidth: 120 }],
'prettier/prettier': ['error', { semi: true, singleQuote: true, printWidth: 120 }],
// 临时关掉
'@typescript-eslint/no-explicit-any': 'off',
},
}
};
1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
65 changes: 52 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tsconfig.vite-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["vite.config.*"],
"compilerOptions": {
"composite": true,
"types": ["node", "vitest"]
}
}
9 changes: 9 additions & 0 deletions tsconfig.vitest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.app.json",
"exclude": [],
"compilerOptions": {
"composite": true,
"lib": [],
"types": ["node", "jsdom"]
}
}

0 comments on commit 71a1f94

Please sign in to comment.