天波h5前端应用
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

3 年前
3 年前
1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. },
  6. extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
  7. parserOptions: {
  8. parser: "babel-eslint",
  9. },
  10. rules: {
  11. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  12. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  13. //关闭prettier
  14. "prettier/prettier": "off",
  15. // 关闭eslint语法检测
  16. "no-unused-vars":0,
  17. },
  18. // 添加全局变量过滤
  19. globals: {
  20. "AMap": "true",
  21. "AMapUI": "true",
  22. "WeixinJSBridge": "true"
  23. },
  24. overrides: [
  25. {
  26. files: [
  27. "**/__tests__/*.{j,t}s?(x)",
  28. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  29. ],
  30. env: {
  31. jest: true,
  32. },
  33. },
  34. ],
  35. };