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

34 lines
769B

  1. /*
  2. * @Date: 2022-01-19 10:08:26
  3. * @LastEditors: JinxChen
  4. * @LastEditTime: 2022-01-19 10:29:11
  5. * @FilePath: \alipay-scan-code-front-end\.eslintrc.js
  6. * @description:
  7. */
  8. module.exports = {
  9. root: true,
  10. env: {
  11. node: true,
  12. },
  13. extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
  14. parserOptions: {
  15. parser: "babel-eslint",
  16. },
  17. rules: {
  18. "no-console": process.env.NODE_ENV === "production" ? "off" : "off",
  19. "no-debugger": process.env.NODE_ENV === "production" ? "off" : "off",
  20. "prettier/prettier": "off", //关闭 prettier 验证
  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. };