Commit Graph

4 Commits

Author SHA1 Message Date
leaysgur e81b2ff6c5 fix(oxlint,oxfmt): report error for invalid glob patterns (#24744)
Fixes #24612

- Update `fast-glob` to `1.1.0` which exposes `validate()` api
- Use it in `oxc_config`, apps will be validated through `deserialize`
- Oxfmt supports globs for CLI paths, also validated
2026-07-21 04:43:49 +00:00
leaysgur 5f685f1961 test(oxfmt): Show generated .gitignore in the tree snapshot (#22208) 2026-05-07 06:20:06 +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 8536dce989 feat(oxfmt): Support glob for CLI paths (#18976)
Fixes #13705

- Support glob patterns like `*.js`, `**/*.ts`, and `{a,b}.js` in CLI paths
- Globs are pre-expanded to make `ignore` crate respects `.gitignore`
  - Existing cases that don't use glob will NOT be affected in terms of performance

This also fixes bug that `oxfmt a.js a.js` formats the same file 2 times 🙈
2026-02-06 07:59:55 +00:00