.eslintrc.js 652 B

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