官网 管理后台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

.eslintrc.js 870B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: [
  7. "plugin:vue/essential",
  8. "eslint:recommended",
  9. "plugin:prettier/recommended"
  10. ],
  11. parserOptions: {
  12. parser: "@babel/eslint-parser"
  13. },
  14. rules: {
  15. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  16. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  17. "vue/multi-word-component-names": "off",
  18. // 不使用script-setup
  19. "vue/script-setup-uses-vars": "off",
  20. "prettier/prettier": [
  21. process.env.NODE_ENV === "production" ? "off" : "error",
  22. // prettier 规则配置
  23. {
  24. endOfLine: "auto", // 换行cr检查
  25. trailingComma: "none" // 对象最后一个属性不加添加逗号
  26. }
  27. ]
  28. },
  29. ignorePatterns: ["public/*"] // ignore all files in test folder
  30. };