天波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.

преди 2 години
преди 2 години
преди 2 години
преди 2 години
123456789101112131415161718192021222324252627282930313233
  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. globals: {
  19. "AMap": "true",
  20. "AMapUI": "true",
  21. },
  22. overrides: [
  23. {
  24. files: [
  25. "**/__tests__/*.{j,t}s?(x)",
  26. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  27. ],
  28. env: {
  29. jest: true,
  30. },
  31. },
  32. ],
  33. };