.eslintrc.js 664 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
  7. parserOptions: {
  8. parser: "babel-eslint"
  9. },
  10. rules: {
  11. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  12. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  13. "no-undef": "warn",
  14. "no-unused-vars": [
  15. "error",
  16. { vars: "all", args: "none", ignoreRestSiblings: false }
  17. ],
  18. "vue/no-parsing-error": [2, { "x-invalid-end-tag": false }],
  19. "vue/no-use-v-if-with-v-for": [
  20. "error",
  21. {
  22. allowUsingIterationVar: true
  23. }
  24. ]
  25. }
  26. };