Skip to content

linter: ignorePatterns and nested configs problem #11067

@Sysix

Description

@Sysix

What version of Oxlint are you using?

latest

What command did you run?

oxlint

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

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

https://github.com/oxc-project/oxc/blob/main/editors/vscode/.oxlintrc.json

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:

Image

Metadata

Metadata

Assignees

Labels

A-editorArea - Editor and Language ServerA-linterArea - Linter

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions