Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linter: ignorePatterns allowlist does not work #8842

Open
Sysix opened this issue Feb 2, 2025 · 0 comments
Open

linter: ignorePatterns allowlist does not work #8842

Sysix opened this issue Feb 2, 2025 · 0 comments
Labels
A-linter Area - Linter C-bug Category - Bug

Comments

@Sysix
Copy link
Collaborator

Sysix commented Feb 2, 2025

What version of Oxlint are you using?

latest

What command did you run?

oxlint

What does your .oxlintrc.json config file look like?

{
    "plugins": [],
    "rules": {
        "no-debugger": "error"
    },
    "ignorePatterns": [
        "ignore_folder/**",
        "!ignore_folder/unignore_folder/**"
    ]
}

What happened?

Eslint tells about the concept between denylist and allowlist https://eslint.org/docs/v8.x/use/configure/ignore#the-eslintignore-file .
I would expect that files under the folder unignore_folder are linted, but I got this result:

0 │+########## 
1 │+arguments: -c .oxlintrc.json
2 │+working directory: fixtures/config_ignore_patterns/unignore_directory
3 │+----------
4 │+Found 0 warnings and 0 errors.
5 │+Finished in <variable>ms on 0 files with 48 rules using 1 threads.
6 │+----------
7 │+CLI result: LintSucceeded
8 │+----------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

1 participant