settings.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "alova",
  64. "Aplipay",
  65. "climblee",
  66. "commitlint",
  67. "dcloudio",
  68. "iconfont",
  69. "oxlint",
  70. "qrcode",
  71. "refresherrefresh",
  72. "scrolltolower",
  73. "tabbar",
  74. "Toutiao",
  75. "uniapp",
  76. "unibest",
  77. "uview",
  78. "uvui",
  79. "Wechat",
  80. "WechatMiniprogram",
  81. "Weixin"
  82. ]
  83. }