What version of Oxlint are you using?
1.50.0
What command did you run?
npx oxlint
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
My folders and files look like this:
~ with
~/my-repo with
- .git
- src/foo.ts
- ".DS_Store" in .gitignore
Expected behavior when running oxlint with ~/my-repo is that src/* gets linted, but running OXC_LOG=debug npx oxlint reports:
2026-03-02T05:15:37.432097Z DEBUG ignore::walk: ignoring ~/my-repo/src: Ignore(IgnoreMatch(Gitignore(Glob { from: Some("~/.gitignore"), original: "*/", actual: "**/*", is_whitelist: false, is_only_dir: true })))
Which means that ~/.gitignore is being picked up, which, however, conflicts with https://git-scm.com/docs/gitignore#_description:
Patterns read from a .gitignore file in the same directory as the path, or in any parent directory (up to the top-level of the working tree)
So afaik this line should be changed/removed (attribute defaults to true):
Its docs also say:
/// Whether a git repository is required to apply git-related ignore
/// rules (global rules, .gitignore and local exclude rules).
///
/// When disabled, git-related ignore rules are applied even when searching
/// outside a git repository.
///
/// In particular, if this is false then .gitignore files will be read
/// from parent directories above the git root directory containing .git,
/// which is different from the git behavior.
What version of Oxlint are you using?
1.50.0
What command did you run?
npx oxlintWhat does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ }What happened?
My folders and files look like this:
~with~/my-repowithExpected behavior when running oxlint with ~/my-repo is that src/* gets linted, but running
OXC_LOG=debug npx oxlintreports:Which means that ~/.gitignore is being picked up, which, however, conflicts with https://git-scm.com/docs/gitignore#_description:
So afaik this line should be changed/removed (attribute defaults to true):
oxc/apps/oxlint/src/walk.rs
Line 106 in 5141bc2
Its docs also say: