-
-
Notifications
You must be signed in to change notification settings - Fork 949
linter: ignorePatterns and nested configs problem #11067
Copy link
Copy link
Labels
A-editorArea - Editor and Language ServerArea - Editor and Language ServerA-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
latest
What command did you run?
oxlint
What does your .oxlintrc.json config file look like?
What happened?
CLI
Running the command: cd editors/vscode && npx oxlint will output:
Found 0 warnings and 0 errors.
Finished in 16ms on 12 files using 24 threads.
Running the command: npx oxlint in edtiors will output:
Found 11 warnings and 0 errors.
Finished in 74ms on 35 files with 97 rules using 24 threads.
Running the command npx oxlint vscode in editors will output:
Found 7 warnings and 0 errors.
Finished in 21ms on 28 files with 97 rules using 24 threads.
The difference between 7 warnings and 11 warnings looks like the .gitignore. The 11 warnings command has output in test_workspace, which is ignored by gitignore.
⚠ eslint(no-debugger): `debugger` statement is not allowed
╭─[vscode/test_workspace/fixtures/index.ts:1:1]
1 │ debugger;
· ─────────
╰────
help: Delete this code.
Editors
The fixtures should not be linted by the language server, but it currently does:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-editorArea - Editor and Language ServerArea - Editor and Language ServerA-linterArea - LinterArea - Linter
Type
Fields
Give feedbackPriority
None yet
Effort
None yet

{ "categories": { "correctness": "error", "perf": "error" }, "ignorePatterns": [ "**/fixtures" ] }