Files
oxc-project__oxc/apps/oxfmt/test/cli/glob_patterns/8.snap.md
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

427 B

Input

Command

oxfmt --check src/*.{js,ts

File tree

- fixtures/ <CWD>
  - lib/
    - util.js
  - src/
    - {d}.js
    - a.js
    - b.js
    - c.ts

Result

Exit code

1

stdout

Checking formatting...

stderr

Invalid glob pattern `src/*.{js,ts`: unclosed brace expansion at byte 6; missing '}' (to match a literal '{', escape it as '/{' or '[{]')

File changes

No changes