.oxlintrc.json 1.0 KB

1234567891011121314151617181920
  1. {
  2. // 本包自带的 oxlint 配置:必须显式存在,否则从仓库根运行 `pnpm --filter @zcode/dynamic-workflow lint`
  3. // 时配置自动发现会向上找到根 .oxlintrc.json,而根配置的 ignorePatterns 含 "apps/zcode-cli",
  4. // 导致整个包 0 个文件可 lint、以 exit 1 失败。就近发现本文件后,规则仍通过 extends
  5. // 完整继承根配置,只有下方 ignorePatterns 是本包特有的差异。
  6. //
  7. // 分析测试的图体语料(顶层 return、顶层 for-await、裸 agent())不是合法模块语法,
  8. // 在 ignorePatterns 统一排除——根 `pnpm lint` 与包内 lint 两个入口共用这一份豁免清单。
  9. "$schema": "./node_modules/oxlint/configuration_schema.json",
  10. "extends": ["../../../../.oxlintrc.json"],
  11. "ignorePatterns": [
  12. "tests/workflows/**",
  13. "tests/graphs/**",
  14. "tests/holes/**",
  15. "tests/schemas/**",
  16. "tests/schema-errors/**"
  17. ],
  18. // override 留空:文件超出 max-lines 上限时应拆模块,而不是回到这里加豁免名单。
  19. "overrides": []
  20. }