.eslintrc.js 877 B

123456789101112131415161718192021222324252627282930313233343536
  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. "plugin:prettier/recommended",
  11. ],
  12. parserOptions: {
  13. ecmaVersion: 2020,
  14. },
  15. rules: {
  16. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  17. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  18. "@typescript-eslint/ban-ts-comment": "off",
  19. "@typescript-eslint/no-explicit-any": "off",
  20. "prettier/prettier": "off",
  21. "@typescript-eslint/no-var-requires": "off",
  22. "@typescript-eslint/no-namespace": "off",
  23. "@typescript-eslint/no-this-alias": "off"
  24. },
  25. overrides: [
  26. {
  27. files: [
  28. "**/__tests__/*.{j,t}s?(x)",
  29. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  30. ],
  31. env: {
  32. jest: true,
  33. },
  34. },
  35. ],
  36. };