settings.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. // 配置语言的文件关联
  3. "files.associations": {
  4. "pages.json": "jsonc", // pages.json 可以写注释
  5. "manifest.json": "jsonc" // manifest.json 可以写注释
  6. },
  7. "typescript.tsdk": "node_modules\\typescript\\lib",
  8. "explorer.fileNesting.enabled": true,
  9. "explorer.fileNesting.expand": false,
  10. "explorer.fileNesting.patterns": {
  11. "README.md": "index.html,favicon.ico,robots.txt,CHANGELOG.md",
  12. "pages.config.ts": "manifest.config.ts,openapi-ts-request.config.ts",
  13. "package.json": "tsconfig.json,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,.npmrc,.browserslistrc",
  14. "eslint.config.mjs": ".commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*"
  15. },
  16. // Disable the default formatter, use eslint instead
  17. "prettier.enable": false,
  18. "editor.formatOnSave": false,
  19. // Auto fix
  20. "editor.codeActionsOnSave": {
  21. "source.fixAll.eslint": "explicit",
  22. "source.organizeImports": "never"
  23. },
  24. // Silent the stylistic rules in you IDE, but still auto fix them
  25. "eslint.rules.customizations": [
  26. { "rule": "style/*", "severity": "off", "fixable": true },
  27. { "rule": "format/*", "severity": "off", "fixable": true },
  28. { "rule": "*-indent", "severity": "off", "fixable": true },
  29. { "rule": "*-spacing", "severity": "off", "fixable": true },
  30. { "rule": "*-spaces", "severity": "off", "fixable": true },
  31. { "rule": "*-order", "severity": "off", "fixable": true },
  32. { "rule": "*-dangle", "severity": "off", "fixable": true },
  33. { "rule": "*-newline", "severity": "off", "fixable": true },
  34. { "rule": "*quotes", "severity": "off", "fixable": true },
  35. { "rule": "*semi", "severity": "off", "fixable": true }
  36. ],
  37. // Enable eslint for all supported languages
  38. "eslint.validate": [
  39. "javascript",
  40. "javascriptreact",
  41. "typescript",
  42. "typescriptreact",
  43. "vue",
  44. "html",
  45. "markdown",
  46. "json",
  47. "json5",
  48. "jsonc",
  49. "yaml",
  50. "toml",
  51. "xml",
  52. "gql",
  53. "graphql",
  54. "astro",
  55. "svelte",
  56. "css",
  57. "less",
  58. "scss",
  59. "pcss",
  60. "postcss"
  61. ],
  62. "cSpell.words": [
  63. "Aplipay",
  64. "climblee",
  65. "commitlint",
  66. "dcloudio",
  67. "iconfont",
  68. "oxlint",
  69. "qrcode",
  70. "refresherrefresh",
  71. "scrolltolower",
  72. "tabbar",
  73. "Toutiao",
  74. "unibest",
  75. "uview",
  76. "uvui",
  77. "Wechat",
  78. "WechatMiniprogram",
  79. "Weixin"
  80. ]
  81. }