settings.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. "docker.md": "Dockerfile,docker*.md,nginx*,.dockerignore",
  17. "pages.config.ts": "manifest.config.ts,openapi-ts-request.config.ts",
  18. "package.json": "tsconfig.json,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,.npmrc,.browserslistrc",
  19. "eslint.config.mjs": ".commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*"
  20. },
  21. // Disable the default formatter, use eslint instead
  22. "prettier.enable": false,
  23. "editor.formatOnSave": false,
  24. // Auto fix
  25. "editor.codeActionsOnSave": {
  26. "source.fixAll.eslint": "explicit",
  27. "source.organizeImports": "never"
  28. },
  29. // Silent the stylistic rules in you IDE, but still auto fix them
  30. "eslint.rules.customizations": [
  31. { "rule": "style/*", "severity": "off", "fixable": true },
  32. { "rule": "format/*", "severity": "off", "fixable": true },
  33. { "rule": "*-indent", "severity": "off", "fixable": true },
  34. { "rule": "*-spacing", "severity": "off", "fixable": true },
  35. { "rule": "*-spaces", "severity": "off", "fixable": true },
  36. { "rule": "*-order", "severity": "off", "fixable": true },
  37. { "rule": "*-dangle", "severity": "off", "fixable": true },
  38. { "rule": "*-newline", "severity": "off", "fixable": true },
  39. { "rule": "*quotes", "severity": "off", "fixable": true },
  40. { "rule": "*semi", "severity": "off", "fixable": true }
  41. ],
  42. // Enable eslint for all supported languages
  43. "eslint.validate": [
  44. "javascript",
  45. "javascriptreact",
  46. "typescript",
  47. "typescriptreact",
  48. "vue",
  49. "html",
  50. "markdown",
  51. "json",
  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. "attributify",
  70. "chooseavatar",
  71. "climblee",
  72. "commitlint",
  73. "dcloudio",
  74. "iconfont",
  75. "oxlint",
  76. "qrcode",
  77. "refresherrefresh",
  78. "scrolltolower",
  79. "tabbar",
  80. "Toutiao",
  81. "uniapp",
  82. "unibest",
  83. "unocss",
  84. "uview",
  85. "uvui",
  86. "Wechat",
  87. "WechatMiniprogram",
  88. "Weixin"
  89. ],
  90. "cSpell.ignoreWords": [
  91. "autoscan",
  92. "easycom",
  93. "iconify",
  94. "oklch",
  95. "wxss"
  96. ]
  97. }