You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 line
3.5 KiB

  1. {
  2. "i18n-ally.localesPaths": ["locales"],
  3. "i18n-ally.keystyle": "nested",
  4. "i18n-ally.sourceLanguage": "zh-CN",
  5. "css.lint.unknownAtRules": "ignore",
  6. // 开启 eslint
  7. "eslint.enable": true,
  8. // 开启 prettier
  9. "prettier.enable": true,
  10. "editor.linkedEditing": true,
  11. // 开启 eslint 作为格式化工具
  12. "eslint.format.enable": true,
  13. // 包管理器 pnpm
  14. "eslint.packageManager": "pnpm",
  15. // 默认格式化选择 prettier,
  16. "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  17. "[json]": {
  18. "editor.defaultFormatter": "esbenp.prettier-vscode"
  19. },
  20. "[jsonc]": {
  21. "editor.defaultFormatter": "esbenp.prettier-vscode"
  22. },
  23. "[vue]": {
  24. "editor.defaultFormatter": "Vue.volar"
  25. },
  26. "[css]": {
  27. "editor.defaultFormatter": "esbenp.prettier-vscode"
  28. },
  29. "[typescript]": {
  30. "editor.defaultFormatter": "esbenp.prettier-vscode"
  31. },
  32. "[javascript]": {
  33. "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  34. },
  35. "[yaml]": {
  36. "editor.defaultFormatter": "esbenp.prettier-vscode"
  37. },
  38. "explorer.fileNesting.enabled": true,
  39. "explorer.fileNesting.expand": false,
  40. "explorer.fileNesting.patterns": {
  41. "*.component.ts": "$(capture).component.html, $(capture).component.spec.ts, $(capture).component.css, $(capture).component.scss, $(capture).component.sass, $(capture).component.less",
  42. "*.css": "$(capture).css.map, $(capture).*.css",
  43. "*.js": "$(capture).js.map, $(capture).*.js",
  44. "*.jsx": "$(capture).js, $(capture).*.jsx",
  45. "*.module.ts": "$(capture).resolver.ts, $(capture).controller.ts, $(capture).service.ts",
  46. "*.ts": "$(capture).js, $(capture).*.ts",
  47. "*.tsx": "$(capture).ts, $(capture).*.tsx",
  48. "*.vue": "$(capture).*.ts, $(capture).*.js",
  49. ".env": "*.env, .env.*, .envrc, env.d.ts",
  50. "package.json": ".browserslist*, .circleci*, .codecov, .commitlint*, .cz-config.js, .czrc, .editorconfig, .eslint*, .firebase*, .flowconfig, .github*, .gitlab*, .gitpod*, .huskyrc*, .jslint*, .lighthouserc.*, .lintstagedrc*, .markdownlint*, .mocha*, .node-version, .nodemon*, .npm*, .nvmrc, .pm2*, .pnp.*, .pnpm*, .prettier*, .releaserc*, .sentry*, .stackblitz*, .styleci*, .stylelint*, .tazerc*, .textlint*, .tool-versions, .travis*, .versionrc*, .vscode*, .watchman*, .xo-config*, .yamllint*, .yarnrc*, Procfile, api-extractor.json, apollo.config.*, appveyor*, ava.config.*, azure-pipelines*, bower.json, build.config.*, commitlint*, crowdin*, cypress.json, dangerfile*, dprint.json, firebase.json, grunt*, gulp*, jasmine.*, jenkins*, jest.config.*, jsconfig.*, karma*, lerna*, lighthouserc.*, lint-staged*, nest-cli.*, netlify*, nodemon*, nx.*, package-lock.json, phpcs.xml, playwright.config.*, pm2.*, pnpm*, prettier*, pullapprove*, puppeteer.config.*, pyrightconfig.json, renovate*, rollup.config.*, stylelint*, tsconfig.*, tsdoc.*, tslint*, tsup.config.*, turbo*, typedoc*, vercel*, vetur.config.*, vitest.config.*, webpack.config.*, workspace.json, xo.config.*, yarn*",
  51. "readme*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
  52. "vite.config.*": "*.env, .babelrc*, .codecov, .cssnanorc*, .env.*, .envrc, .htmlnanorc*, .lighthouserc.*, .mocha*, .postcssrc*, .terserrc*, api-extractor.json, ava.config.*, babel.config.*, cssnano.config.*, cypress.json, env.d.ts, htmlnanorc.*, jasmine.*, jest.config.*, jsconfig.*, karma*, lighthouserc.*, playwright.config.*, postcss.config.*, puppeteer.config.*, svgo.config.*, tailwind.config.*, tsconfig.*, tsdoc.*, unocss.config.*, vitest.config.*, webpack.config.*, windi.config.*"
  53. }
  54. }