.eslintrc.js 645 B

12345678910111213141516171819202122232425262728293031323334353637
  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. globals: {
  10. '$': false,
  11. 'jquery': false
  12. },
  13. rules: {
  14. "max-len": [
  15. "warn",
  16. {
  17. code: 250
  18. }
  19. ],
  20. "no-unused-vars": "off",
  21. "no-console": "off",
  22. "prettier/prettier": [
  23. "warn",
  24. {
  25. singleQuote: true,
  26. trailingComma: "es5",
  27. bracketSpacing: true,
  28. jsxBracketSameLine: true,
  29. printWidth: 160,
  30. }
  31. ]
  32. },
  33. parserOptions: {
  34. parser: "babel-eslint"
  35. }
  36. };