.eslintrc.js 624 B

12345678910111213141516171819202122232425262728293031
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: [
  7. "plugin:vue/vue3-essential",
  8. "eslint:recommended",
  9. "@vue/typescript/recommended",
  10. "@vue/prettier",
  11. "@vue/prettier/@typescript-eslint"
  12. ],
  13. parserOptions: {
  14. ecmaVersion: 2020
  15. },
  16. rules: {
  17. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  18. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
  19. },
  20. overrides: [
  21. {
  22. files: [
  23. "**/__tests__/*.{j,t}s?(x)",
  24. "**/tests/unit/**/*.spec.{j,t}s?(x)"
  25. ],
  26. env: {
  27. jest: true
  28. }
  29. }
  30. ]
  31. };