.eslintrc.js 581 B

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