Skip to content

linter: add support "ignores" to config #7032

@pumano

Description

@pumano

What version of Oxlint are you using?

0.10.3

What command did you run?

No response

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

proposed example:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "ignores": [
      "packages/*",
      ".nx/",
      "dist/"
  ],
  "plugins": ["import", "unicorn"],
  "rules": {
    "oxc/no-barrel-file": "warn"
  }

What happened?

When I use eslint flat config with eslint 9, eslint spam me warning about not use .eslintignore which is only way to ignore files and folders supported by oxlint.

I suggest to support "ignores" in config from eslint flat config which way to set paths for ignoring. Link to ignores in eslint website: https://eslint.org/docs/latest/use/configure/ignore

After it implemented people from eslint 9 can use oxlint without annoying warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-bugCategory - BugE-Help WantedExperience level - For the experienced collaborators

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions