天波h5前端应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 line
860B

  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. "eruda": "true"
  24. },
  25. overrides: [
  26. {
  27. files: [
  28. "**/__tests__/*.{j,t}s?(x)",
  29. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  30. ],
  31. env: {
  32. jest: true,
  33. },
  34. },
  35. ],
  36. };