3
0

.eslintrc.js 750 B

1234567891011121314151617181920212223242526272829303132
  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": "off",
  16. "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
  17. "vue/multi-word-component-names": "off",
  18. "vue/no-mutating-props": "off",
  19. "no-unused-vars": [
  20. "error",
  21. { vars: "all", args: "none", ignoreRestSiblings: false },
  22. ],
  23. "vue/no-parsing-error": [2, { "x-invalid-end-tag": false }],
  24. "vue/no-use-v-if-with-v-for": [
  25. "error",
  26. {
  27. allowUsingIterationVar: true,
  28. },
  29. ],
  30. },
  31. ignorePatterns: ["public/"],
  32. };