Commit Graph

4 Commits

Author SHA1 Message Date
leaysgur 5aa7fe1b12 feat(oxfmt): Add --disable-nested-config CLI flag (#21514)
Fixes #21420
2026-04-17 01:20:46 +00:00
leaysgur f87b33464d test(oxfmt): Refactor test fixtures usage (#21494)
- Normalized tests that were ambiguous as to whether they were fixtures or scenarios based
- Specified this rule in AGENTS.md
- Made the test name report in the CLI clearer
2026-04-16 09:40:58 +00:00
leaysgur c9b4db9ff7 test(oxfmt): Rework test/cli tests (#21463)
Switch to a fixture-based testing approach, similar to apps/oxlint.
2026-04-15 09:13:40 +00:00
leaysgur 16713d58cd feat(oxfmt/cli): Support per-directory config (#21103)
Fixes #19509

Initially, I thought about sharing the implementation with Oxlint, but finally I  decided not to do it due to constraints and structural differences.

- Strategy
  - Oxlint: Collects all file paths into memory upfront
    - for cross-module analysis?
    - then filters by `ignorePatterns` afterward
  - Oxfmt: Streams files to the formatter as they are discovered while walking
    - Scope-based walk resolves config at walk time, avoiding a separate post-walk filtering pass
- Config
  - Oxlint: There is a difference in what can be configured in the root config versus the rest
  - Oxfmt: No difference
2026-04-15 01:26:50 +00:00