.eslintrc.js 601 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. },
  6. extends: ["plugin:vue/recommended", "eslint:recommended", "@vue/prettier"],
  7. parserOptions: {
  8. parser: "babel-eslint",
  9. },
  10. rules: {
  11. "no-console": process.env.NODE_ENV === "production" ? "off" : "off",
  12. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  13. "vue/no-v-html": "off",
  14. },
  15. overrides: [
  16. {
  17. files: [
  18. "**/__tests__/*.{j,t}s?(x)",
  19. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  20. ],
  21. env: {
  22. jest: true,
  23. },
  24. },
  25. ],
  26. ignorePatterns: ["public/"],
  27. };