.eslintrc.js 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. "prefer-const": "off",
  25. "@typescript-eslint/adjacent-overload-signatures":"off",
  26. "no-empty": "off",
  27. "no-fallthrough": "off"
  28. },
  29. overrides: [
  30. {
  31. files: [
  32. "**/__tests__/*.{j,t}s?(x)",
  33. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  34. ],
  35. env: {
  36. jest: true,
  37. },
  38. },
  39. ],
  40. };