.eslintrc.js 600 B

123456789101112131415161718192021222324252627282930313233
  1. // https://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. env: {
  5. node: true,
  6. },
  7. extends: ["plugin:vue/essential", "@vue/prettier"],
  8. plugins: ["vue"],
  9. rules: {
  10. "max-len": [
  11. "warn",
  12. {
  13. code: 10000,
  14. },
  15. ],
  16. "no-unused-vars": "off",
  17. "no-console": "off",
  18. "prettier/prettier": [
  19. "warn",
  20. {
  21. singleQuote: true,
  22. trailingComma: "es5",
  23. bracketSpacing: true,
  24. jsxBracketSameLine: true,
  25. printWidth: 160,
  26. },
  27. ],
  28. },
  29. parserOptions: {
  30. parser: "babel-eslint",
  31. },
  32. };