mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 13:18:59 +00:00
As discussed in #1124 A common workflow is running `oxlint` automatically via something like lint-staged, which passes all changed file paths explicitly as CLI arguments. The ignore crate auto-whitelists explicit paths, overriding anything defined in an ignore file, leading to files that should be ignored causing CI and VC hooks to fail. eslint avoids this issue by giving precedence to .eslintignore unless you pass `--no-ignore`. Since `ignore` doesn't really give much control over this, the most effective solution seems to be filtering. ~~Once we've got a list of files to be linted, we can compare each against the .eslintignore and see if it really truly should be linted.~~ ~~Unfortunately, this is sort of a naive solution. Ignored directories will still be walked, then filtered out after the fact. Changing this behavior at the walker level would affect the formatter, which probably isn't desirable.~~ (edit: The performance impact has been mostly resolved.) Signed-off-by: Clark Fischer <clark.fischer@gmail.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| src | ||
| Cargo.toml | ||