eslint.config.mjs 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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": [
  8. "error",
  9. {
  10. args: "all",
  11. ignoreRestSiblings: true,
  12. varsIgnorePattern: "^_",
  13. argsIgnorePattern: "^_",
  14. caughtErrorsIgnorePattern: "^_",
  15. },
  16. ],
  17. "@typescript-eslint/no-explicit-any": "off",
  18. "react/prop-types": "off",
  19. "react/display-name": "off",
  20. },
  21. },
  22. {
  23. files: ["src/components/chat/ChatRow.tsx", "src/components/settings/ModelInfoView.tsx"],
  24. rules: {
  25. "react/jsx-key": "off",
  26. },
  27. },
  28. {
  29. files: [
  30. "src/components/chat/ChatRow.tsx",
  31. "src/components/chat/ChatView.tsx",
  32. "src/components/chat/BrowserSessionRow.tsx",
  33. "src/components/history/useTaskSearch.ts",
  34. ],
  35. rules: {
  36. "no-case-declarations": "off",
  37. },
  38. },
  39. {
  40. files: ["src/__mocks__/**/*.js"],
  41. rules: {
  42. "no-undef": "off",
  43. },
  44. },
  45. ]