chore: 禁用prettier并启用eslint作为默认格式化工具

This commit is contained in:
feige996 2025-06-22 10:07:22 +08:00
parent 69b7429909
commit 2000eda414

30
.vscode/settings.json vendored
View File

@ -56,25 +56,25 @@
"eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*" "eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*"
}, },
// // //
"prettier.enable": true, // "prettier.enable": true,
"editor.formatOnSave": true, // "editor.formatOnSave": true,
// // //
"editor.codeActionsOnSave": { // "editor.codeActionsOnSave": {
"source.fixAll": "explicit", // "source.fixAll": "explicit",
"source.fixAll.eslint": "explicit", // "source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit" // "source.fixAll.stylelint": "explicit"
}, // },
// Disable the default formatter, use eslint instead // Disable the default formatter, use eslint instead
// "prettier.enable": false, "prettier.enable": false,
// "editor.formatOnSave": false, "editor.formatOnSave": false,
// Auto fix // Auto fix
// "editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
// "source.fixAll.eslint": "explicit", "source.fixAll.eslint": "explicit",
// "source.organizeImports": "never" "source.organizeImports": "never"
// }, },
// Silent the stylistic rules in you IDE, but still auto fix them // Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [ "eslint.rules.customizations": [