.eslintrc.js 676 B

1234567891011121314151617181920212223242526272829303132
  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. "@typescript-eslint/camelcase": "off",
  20. },
  21. overrides: [
  22. {
  23. files: [
  24. "**/__tests__/*.{j,t}s?(x)",
  25. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  26. ],
  27. env: {
  28. jest: true,
  29. },
  30. },
  31. ],
  32. };