.eslintrc.js 641 B

12345678910111213141516171819202122232425
  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" ? "error" : "off",
  13. "no-unused-vars": [
  14. "error",
  15. { vars: "all", args: "none", ignoreRestSiblings: false }
  16. ],
  17. "vue/no-parsing-error": [2, { "x-invalid-end-tag": false }],
  18. "vue/no-use-v-if-with-v-for": [
  19. "error",
  20. {
  21. allowUsingIterationVar: true
  22. }
  23. ]
  24. }
  25. };