📦 Chore(custom): update vscode setting

This commit is contained in:
Kuingsmile
2026-06-11 02:22:23 -07:00
parent c35a32d416
commit 6bbc08fba7
9 changed files with 272 additions and 96 deletions
+10 -1
View File
@@ -1,3 +1,12 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "stylelint.vscode-stylelint"]
"recommendations": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"lokalise.i18n-ally",
"bradlc.vscode-tailwindcss",
"vitest.explorer"
]
}
+16 -7
View File
@@ -5,23 +5,31 @@
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-vite",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": ["--sourcemap"],
"runtimeArgs": ["dev", "--sourcemap"],
"env": {
"REMOTE_DEBUGGING_PORT": "9222"
}
},
"console": "integratedTerminal",
"outputCapture": "std",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
},
{
"name": "Debug Renderer Process",
"port": 9222,
"request": "attach",
"type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "${workspaceFolder}/src/renderer",
"sourceMaps": true,
"timeout": 60000,
"skipFiles": ["${workspaceFolder}/node_modules/**"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"presentation": {
"hidden": true
}
@@ -31,6 +39,7 @@
{
"name": "Debug All",
"configurations": ["Debug Main Process", "Debug Renderer Process"],
"stopAll": true,
"presentation": {
"order": 1
}
+101 -19
View File
@@ -1,9 +1,77 @@
{
"npm.packageManager": "yarn",
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.rulers": [120],
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"files.encoding": "utf8",
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/dist/**": true,
"**/dist_electron/**": true,
"**/node_modules/**": true,
"**/out/**": true
},
"search.exclude": {
"**/dist": true,
"**/dist_electron": true,
"**/node_modules": true,
"**/out": true
},
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"package.json": "yarn.lock, pnpm-lock.yaml, package-lock.json",
"tsconfig.json": "tsconfig.*.json",
"electron.vite.config.js": "electron-builder.json",
"README.md": "README_cn.md, FAQ.md, FAQ_EN.md, CHANGELOG.md"
},
"eslint.useFlatConfig": true,
"eslint.experimental.useFlatConfig": null,
"eslint.run": "onSave",
"eslint.codeActionsOnSave.mode": "all",
"eslint.format.enable": true,
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "json", "jsonc"],
"stylelint.validate": ["css", "scss", "less", "vue"],
"css.validate": false,
"scss.validate": false,
"less.validate": false,
"prettier.requireConfig": true,
"prettier.useEditorConfig": true,
"js/ts.tsdk.path": "node_modules/typescript/lib",
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
"js/ts.tsserver.maxMemory": 4096,
"js/ts.preferences.quoteStyle": "single",
"js/ts.updateImportsOnFileMove.enabled": "always",
"tailwindCSS.includeLanguages": {
"vue": "html"
},
"emmet.includeLanguages": {
"vue": "html",
"vue-html": "html"
},
"i18n-ally.localesPaths": ["src/renderer/i18n/locales", "src/main/i18n/locales"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"i18n-ally.enabledParsers": ["json", "yaml"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue"],
"i18n-ally.editor.preferEditor": true,
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
@@ -21,7 +89,8 @@
"[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
"source.fixAll.eslint": "always",
"source.fixAll.stylelint": "always"
},
"editor.formatOnSave": false
},
@@ -39,8 +108,21 @@
},
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint",
@@ -49,19 +131,19 @@
},
"editor.formatOnSave": false
},
"eslint.validate": ["javascript", "javascriptreact", "vue", "typescript", "typescriptreact", "json", "jsonc"],
"githubPullRequests.ignoredPullRequestBranches": ["dev"],
"i18n-ally.localesPaths": ["src\\renderer\\i18n\\locales", "resources\\i18n", "src\\main\\i18n\\locales"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"i18n-ally.enabledParsers": ["json", "yaml"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue"],
"i18n-ally.editor.preferEditor": true,
"js/ts.tsdk.path": "node_modules\\typescript\\lib",
"css.validate": false,
"scss.validate": false,
"less.validate": false
"[scss]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint",
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": "always"
},
"editor.formatOnSave": false
},
"[less]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint",
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": "always"
},
"editor.formatOnSave": false
},
"githubPullRequests.ignoredPullRequestBranches": ["dev"]
}
+89 -19
View File
@@ -1,26 +1,96 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "electron-debug",
"type": "process",
"command": "./node_modules/.bin/vue-cli-service",
"windows": {
"command": "./node_modules/.bin/vue-cli-service.cmd"
},
"isBackground": true,
"args": ["electron:serve", "--debug"],
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": ""
},
"background": {
"beginsPattern": "Starting development server\\.\\.\\.",
"endsPattern": "Not launching electron as debug argument was passed\\."
}
"label": "yarn: install",
"type": "shell",
"command": "yarn",
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: dev",
"type": "shell",
"command": "yarn",
"args": ["dev"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"reveal": "always"
}
},
{
"label": "yarn: build",
"type": "shell",
"command": "yarn",
"args": ["build"],
"group": "build",
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: test",
"type": "shell",
"command": "yarn",
"args": ["test", "--run"],
"group": "test",
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint",
"type": "shell",
"command": "yarn",
"args": ["lint"],
"problemMatcher": "$eslint-stylish",
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:fix",
"type": "shell",
"command": "yarn",
"args": ["lint:fix"],
"problemMatcher": "$eslint-stylish",
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:style",
"type": "shell",
"command": "yarn",
"args": ["lint:style"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:dpdm",
"type": "shell",
"command": "yarn",
"args": ["lint:dpdm"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:dpdm:renderer",
"type": "shell",
"command": "yarn",
"args": ["lint:dpdm:renderer"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
}
]