chore: 改为oxfmt.config.mjs(识别不了ts文件)导致无法格式化

This commit is contained in:
dap
2026-03-17 21:14:12 +08:00
parent 0af6ca0fcb
commit 0bbff073b1
3 changed files with 69 additions and 71 deletions

10
.vscode/settings.json vendored
View File

@@ -40,7 +40,7 @@
"oxc.enable": true,
"oxc.typeAware": true,
"oxc.configPath": "oxlint.config.ts",
"oxc.fmt.configPath": "oxfmt.config.ts",
"oxc.fmt.configPath": "oxfmt.config.mjs",
"eslint.useFlatConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
@@ -181,9 +181,9 @@
"stylelint.customSyntax": "postcss-html",
"stylelint.snippet": ["css", "less", "postcss", "scss", "vue"],
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.preferences.includePackageJsonAutoImports": "on",
"js/ts.inlayHints.enumMemberValues.enabled": true,
"js/ts.preferences.preferTypeOnlyAutoImports": true,
"js/ts.preferences.includePackageJsonAutoImports": "on",
"eslint.validate": [
"javascript",
@@ -240,7 +240,7 @@
"commentTranslate.multiLineMerge": true,
"vue.server.hybridMode": true,
"vitest.disableWorkspaceWarning": true,
"typescript.tsdk": "node_modules/typescript/lib",
"js/ts.tsdk.path": "node_modules/typescript/lib",
"editor.linkedEditing": true, // 自动同步更改html标签,
"vscodeCustomCodeColor.highlightValue": "v-access", // v-access显示的颜色
"vscodeCustomCodeColor.highlightValueColor": "#CCFFFF",

View File

@@ -12,68 +12,68 @@ packages:
- scripts/*
overrides:
"@ast-grep/napi": "catalog:"
"@ctrl/tinycolor": "catalog:"
clsx: "catalog:"
pinia: "catalog:"
vue: "catalog:"
'@ast-grep/napi': 'catalog:'
'@ctrl/tinycolor': 'catalog:'
clsx: 'catalog:'
pinia: 'catalog:'
vue: 'catalog:'
catalog:
"@alova/adapter-axios": ^2.0.17
"@antdv-next/auto-import-resolver": 1.0.7
"@antdv-next/happy-work-theme": ^1.0.0
"@antdv-next/icons": 1.0.5
"@ast-grep/napi": ^0.42.0
"@changesets/changelog-github": ^0.6.0
"@changesets/cli": ^2.30.0
"@changesets/git": ^3.0.4
"@clack/prompts": ^1.1.0
"@codemirror/lang-html": ^6.4.9
"@codemirror/lang-java": ^6.0.1
"@codemirror/lang-javascript": ^6.2.2
"@codemirror/lang-sql": ^6.7.1
"@codemirror/lang-vue": ^0.1.3
"@codemirror/lang-xml": ^6.1.0
"@codemirror/theme-one-dark": ^6.1.2
"@commitlint/cli": ^20.5.0
"@commitlint/config-conventional": ^20.5.0
"@ctrl/tinycolor": ^4.2.0
"@eslint-community/eslint-plugin-eslint-comments": ^4.7.1
"@eslint/js": ^10.0.1
"@iconify/json": ^2.2.449
"@iconify/tailwind4": ^1.2.3
"@iconify/vue": ^5.0.0
"@intlify/core-base": ^11.3.0
"@intlify/unplugin-vue-i18n": ^11.0.7
"@jspm/generator": ^2.11.0
"@manypkg/get-packages": ^3.1.0
"@playwright/test": ^1.58.2
"@pnpm/workspace.read-manifest": ^1000.3.0
"@stylistic/stylelint-plugin": ^5.0.1
"@tailwindcss/typography": ^0.5.19
"@tailwindcss/vite": ^4.2.1
"@tanstack/vue-store": ^0.9.2
"@tinymce/tinymce-vue": ^6.0.1
"@tsdown/css": ^0.0.0
"@types/archiver": ^7.0.0
"@types/html-minifier-terser": ^7.0.2
"@types/json-bigint": ^1.0.4
"@types/lodash-es": ^4.17.12
"@types/lodash.clonedeep": ^4.5.9
"@types/node": ^25.5.0
"@types/nprogress": ^0.2.3
"@types/qrcode": ^1.5.6
"@types/qs": ^6.15.0
"@types/sortablejs": ^1.15.9
"@typescript-eslint/eslint-plugin": ^8.57.0
"@typescript-eslint/parser": ^8.57.0
"@vee-validate/zod": ^4.15.1
"@vitejs/plugin-vue": ^6.0.5
"@vitejs/plugin-vue-jsx": ^5.1.5
"@vue/shared": ^3.5.30
"@vue/test-utils": ^2.4.6
"@vueuse/core": ^14.2.1
"@vueuse/integrations": ^14.2.1
"@vueuse/motion": ^3.0.3
'@alova/adapter-axios': ^2.0.17
'@antdv-next/auto-import-resolver': 1.0.7
'@antdv-next/happy-work-theme': ^1.0.0
'@antdv-next/icons': 1.0.5
'@ast-grep/napi': ^0.42.0
'@changesets/changelog-github': ^0.6.0
'@changesets/cli': ^2.30.0
'@changesets/git': ^3.0.4
'@clack/prompts': ^1.1.0
'@codemirror/lang-html': ^6.4.9
'@codemirror/lang-java': ^6.0.1
'@codemirror/lang-javascript': ^6.2.2
'@codemirror/lang-sql': ^6.7.1
'@codemirror/lang-vue': ^0.1.3
'@codemirror/lang-xml': ^6.1.0
'@codemirror/theme-one-dark': ^6.1.2
'@commitlint/cli': ^20.5.0
'@commitlint/config-conventional': ^20.5.0
'@ctrl/tinycolor': ^4.2.0
'@eslint-community/eslint-plugin-eslint-comments': ^4.7.1
'@eslint/js': ^10.0.1
'@iconify/json': ^2.2.449
'@iconify/tailwind4': ^1.2.3
'@iconify/vue': ^5.0.0
'@intlify/core-base': ^11.3.0
'@intlify/unplugin-vue-i18n': ^11.0.7
'@jspm/generator': ^2.11.0
'@manypkg/get-packages': ^3.1.0
'@playwright/test': ^1.58.2
'@pnpm/workspace.read-manifest': ^1000.3.0
'@stylistic/stylelint-plugin': ^5.0.1
'@tailwindcss/typography': ^0.5.19
'@tailwindcss/vite': ^4.2.1
'@tanstack/vue-store': ^0.9.2
'@tinymce/tinymce-vue': ^6.0.1
'@tsdown/css': ^0.21.3
'@types/archiver': ^7.0.0
'@types/html-minifier-terser': ^7.0.2
'@types/json-bigint': ^1.0.4
'@types/lodash-es': ^4.17.12
'@types/lodash.clonedeep': ^4.5.9
'@types/node': ^25.5.0
'@types/nprogress': ^0.2.3
'@types/qrcode': ^1.5.6
'@types/qs': ^6.15.0
'@types/sortablejs': ^1.15.9
'@typescript-eslint/eslint-plugin': ^8.57.0
'@typescript-eslint/parser': ^8.57.0
'@vee-validate/zod': ^4.15.1
'@vitejs/plugin-vue': ^6.0.5
'@vitejs/plugin-vue-jsx': ^5.1.5
'@vue/shared': ^3.5.30
'@vue/test-utils': ^2.4.6
'@vueuse/core': ^14.2.1
'@vueuse/integrations': ^14.2.1
'@vueuse/motion': ^3.0.3
alova: ^3.4.1
antdv-next: ^1.1.4
archiver: ^7.0.1
@@ -142,7 +142,6 @@ catalog:
reka-ui: ^2.9.2
resolve.exports: ^2.0.3
rimraf: ^6.1.3
rollup: ^4.59.0
rollup-plugin-visualizer: ^7.0.1
sass: ^1.98.0
sass-embedded: ^1.98.0
@@ -161,19 +160,18 @@ catalog:
theme-colors: ^0.1.0
tinymce: 7.9.1
tippy.js: ^6.3.7
tsdown: ^0.0.0
tsdown: ^0.21.3
turbo: ^2.8.17
tw-animate-css: ^1.4.0
typescript: ^5.9.3
unbuild: ^3.6.1
unplugin-vue: ^0.0.0
unplugin-dts: ^1.0.0-beta.6
unplugin-vue: ^7.1.1
unplugin-vue-components: ^0.27.3
vditor: 3.10.9
vee-validate: ^4.15.1
version-polling: ^1.3.3
vite: ^8.0.0
vite-plugin-compression: ^0.5.1
vite-plugin-dts: ^4.5.4
vite-plugin-html: ^3.2.2
vite-plugin-lazy-import: ^1.0.7
vite-plugin-pwa: ^1.2.0