eslint.config.mjs 789 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { reactConfig } from "@roo-code/config-eslint/react"
  2. /** @type {import("eslint").Linter.Config} */
  3. export default [
  4. ...reactConfig,
  5. {
  6. rules: {
  7. "@typescript-eslint/no-unused-vars": "off",
  8. "@typescript-eslint/no-explicit-any": "off",
  9. "react/prop-types": "off",
  10. "react/display-name": "off",
  11. },
  12. },
  13. {
  14. files: ["src/components/chat/ChatRow.tsx", "src/components/settings/ModelInfoView.tsx"],
  15. rules: {
  16. "react/jsx-key": "off",
  17. },
  18. },
  19. {
  20. files: [
  21. "src/components/chat/ChatRow.tsx",
  22. "src/components/chat/ChatView.tsx",
  23. "src/components/chat/BrowserSessionRow.tsx",
  24. "src/components/history/useTaskSearch.ts",
  25. ],
  26. rules: {
  27. "no-case-declarations": "off",
  28. },
  29. },
  30. {
  31. files: ["src/__mocks__/**/*.js"],
  32. rules: {
  33. "no-undef": "off",
  34. },
  35. },
  36. ]