.oxlintrc.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "$schema": "./node_modules/oxlint/configuration_schema.json",
  3. "plugins": [
  4. "eslint",
  5. "typescript",
  6. "unicorn",
  7. "oxc",
  8. "react",
  9. "import",
  10. "jsx-a11y",
  11. "nextjs"
  12. ],
  13. "categories": {
  14. "correctness": "error"
  15. },
  16. "env": {
  17. "builtin": true,
  18. "browser": true,
  19. "node": true
  20. },
  21. "options": {
  22. "typeAware": true,
  23. "typeCheck": true
  24. },
  25. "ignorePatterns": [
  26. ".next/**",
  27. ".vinext/**",
  28. "out/**",
  29. "build/**",
  30. "dist/**",
  31. "coverage/**",
  32. "next-env.d.ts"
  33. ],
  34. "rules": {
  35. "no-array-constructor": "error",
  36. "no-var": "error",
  37. "prefer-const": "error",
  38. "prefer-rest-params": "error",
  39. "prefer-spread": "error",
  40. "import/no-anonymous-default-export": "warn",
  41. "react/display-name": "error",
  42. "react/jsx-no-comment-textnodes": "error",
  43. "react/no-unescaped-entities": "error",
  44. "react/react-compiler": "error",
  45. "react/require-render-return": "error",
  46. "react/rules-of-hooks": "error",
  47. "typescript/ban-ts-comment": "error",
  48. "typescript/no-deprecated": "error",
  49. "typescript/no-empty-object-type": "error",
  50. "typescript/no-explicit-any": "error",
  51. "typescript/no-namespace": "error",
  52. "typescript/no-require-imports": "error",
  53. "typescript/no-unnecessary-type-constraint": "error",
  54. "typescript/no-unsafe-function-type": "error"
  55. }
  56. }