.eslintrc.js 678 B

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