settings.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. "jsonc",
  52. "yaml",
  53. "toml",
  54. "xml",
  55. "gql",
  56. "graphql",
  57. "astro",
  58. "svelte",
  59. "css",
  60. "less",
  61. "scss",
  62. "pcss",
  63. "postcss"
  64. ],
  65. "cSpell.words": [
  66. "alova",
  67. "Aplipay",
  68. "chooseavatar",
  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. "unocss",
  82. "uview",
  83. "uvui",
  84. "Wechat",
  85. "WechatMiniprogram",
  86. "Weixin"
  87. ]
  88. }