Skip to content

Commit 71a1f94

Browse files
committed
fix: tsconfig move
1 parent 0c6f292 commit 71a1f94

5 files changed

+73
-16
lines changed

.eslintrc.cjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-env node */
2-
require('@rushstack/eslint-patch/modern-module-resolution')
2+
require('@rushstack/eslint-patch/modern-module-resolution');
33

44
module.exports = {
55
root: true,
@@ -13,8 +13,8 @@ module.exports = {
1313
'vue/setup-compiler-macros': true,
1414
},
1515
rules: {
16-
'prettier/prettier': ['error', { semi: false, singleQuote: true, printWidth: 120 }],
16+
'prettier/prettier': ['error', { semi: true, singleQuote: true, printWidth: 120 }],
1717
// 临时关掉
1818
'@typescript-eslint/no-explicit-any': 'off',
1919
},
20-
}
20+
};

env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

pnpm-lock.yaml

+52-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.vite-config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@vue/tsconfig/tsconfig.node.json",
3+
"include": ["vite.config.*"],
4+
"compilerOptions": {
5+
"composite": true,
6+
"types": ["node", "vitest"]
7+
}
8+
}

tsconfig.vitest.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.app.json",
3+
"exclude": [],
4+
"compilerOptions": {
5+
"composite": true,
6+
"lib": [],
7+
"types": ["node", "jsdom"]
8+
}
9+
}

0 commit comments

Comments
 (0)