.eslintrc.js 849 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. browser: true,
  6. },
  7. extends: ["plugin:vue/essential", "eslint:recommended"],
  8. parserOptions: {
  9. parser: "babel-eslint",
  10. sourceType: "module",
  11. },
  12. rules: {
  13. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  14. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  15. "vue/no-unused-vars": "warn",
  16. "vue/require-prop-types": "off",
  17. "vue/require-default-prop": "off",
  18. "vue/max-attributes-per-line": "off",
  19. "vue/html-closing-bracket-spacing": "off",
  20. "vue/html-indent": "off",
  21. "vue/no-parsing-error": "off",
  22. "no-trailing-spaces": "warn",
  23. "no-multiple-empty-lines": "warn",
  24. "space-before-function-paren": "off",
  25. "comma-dangle": "off",
  26. semi: "off",
  27. quotes: "off",
  28. eqeqeq: "warn",
  29. },
  30. };