Skip to content

linter: add support "files" in config #7096

@pumano

Description

@pumano

What version of Oxlint are you using?

0.11.0

What command did you run?

No response

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

Proposed config:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["import", "unicorn"],
  "files": ["**/*.ts", "**/*.tsx"],
  "rules": {
    "import/no-commonjs": "error",
    "import/no-cycle": "error",
    "import/no-duplicates": "error",
    "import/no-self-import": "error"
  }
}

What happened?

"files" should be supported, because it target some rules for specific file types. In my case i use import/no-commonjs rule against only *.ts files and skip *.js files

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions