Skip to content

feat: oxlint config add ignorePatterns#885

Closed
btea wants to merge 1 commit intomainfrom
feat/oxlint-add-ignorePatterns
Closed

feat: oxlint config add ignorePatterns#885
btea wants to merge 1 commit intomainfrom
feat/oxlint-add-ignorePatterns

Conversation

@btea
Copy link
Collaborator

@btea btea commented Dec 31, 2025

Description

It appears that oxlint does not exclude node_modules by default.

@btea btea requested a review from haoqunjiang December 31, 2025 10:16
@TheAlexLichter
Copy link
Contributor

It should adhere to .gitignore when a git repo is detected!

@btea
Copy link
Collaborator Author

btea commented Jan 2, 2026

I don't quite understand. Does it mean that oxlint will respect the .gitignore configuration?

@TheAlexLichter
Copy link
Contributor

I don't quite understand. Does it mean that oxlint will respect the .gitignore configuration?

Yes, correct, but only if it detects a git repository, otherwise it won't.

@btea
Copy link
Collaborator Author

btea commented Jan 7, 2026

Yes, correct, but only if it detects a git repository, otherwise it won't.

detects a git repository How should this be understood?

When I initialize a project without initializing Git, the lint command will check the files in the node_modules directory.

@TheAlexLichter
Copy link
Contributor

TheAlexLichter commented Jan 7, 2026

@btea update: this has been changed in Oxlint v1.36.0. .gitignore his always honored by default now. oxc-project/oxc#17375

@btea
Copy link
Collaborator Author

btea commented Jan 7, 2026

Thank you for your detailed explanation. The latest version is no longer problematic. 👍

@btea btea closed this Jan 7, 2026
@btea btea deleted the feat/oxlint-add-ignorePatterns branch January 9, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants