.eslintrc.js 723 B

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