settings.json 2.6 KB

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