.oxlintrc.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "$schema": "./node_modules/oxlint/configuration_schema.json",
  3. "plugins": null,
  4. "categories": {},
  5. "rules": {
  6. "max-lines": ["error", { "max": 400, "skipBlankLines": true, "skipComments": true }]
  7. },
  8. "overrides": [
  9. {
  10. // 测试文件天然会堆叠大量场景与断言,继续复用生产代码的行数上限会造成误报,
  11. // 因此只对 test/spec 文件关闭 max-lines,避免放宽业务代码约束。
  12. "files": ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"],
  13. "rules": {
  14. "max-lines": "off"
  15. }
  16. },
  17. {
  18. "files": ["**/i18n/locales/*.ts"],
  19. "rules": {
  20. "max-lines": "off"
  21. }
  22. }
  23. ],
  24. "settings": {
  25. "jsx-a11y": {
  26. "polymorphicPropName": null,
  27. "components": {},
  28. "attributes": {}
  29. },
  30. "next": {
  31. "rootDir": []
  32. },
  33. "react": {
  34. "formComponents": [],
  35. "linkComponents": [],
  36. "version": null,
  37. "componentWrapperFunctions": []
  38. },
  39. "jsdoc": {
  40. "ignorePrivate": false,
  41. "ignoreInternal": false,
  42. "ignoreReplacesDocs": true,
  43. "overrideReplacesDocs": true,
  44. "augmentsExtendsReplacesDocs": false,
  45. "implementsReplacesDocs": false,
  46. "exemptDestructuredRootsFromChecks": false,
  47. "tagNamePreference": {}
  48. },
  49. "vitest": {
  50. "typecheck": false
  51. }
  52. },
  53. "env": {
  54. "builtin": true
  55. },
  56. "globals": {},
  57. "ignorePatterns": [
  58. "dist-release",
  59. "packages/ui/src/components/ui",
  60. "packages/ui/src/components/ai-elements",
  61. ".claude/skills",
  62. ".agents/skills",
  63. "packages/formal-proof",
  64. "apps/zcode-cli",
  65. "docs/electron"
  66. ]
  67. }