Skip to content

linter: typescript/array-type of array-simple reject factories.user[] #12605

@KieranP

Description

@KieranP

What version of Oxlint are you using?

1.9.0

What command did you run?

oxlint

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["eslint", "oxc", "typescript", "import", "promise", "unicorn"],
  "categories": {
    "correctness": "error",
    "nursery": "error",
    "pedantic": "error",
    "perf": "error",
    "restriction": "error",
    "style": "error",
    "suspicious": "error"
  },
  "rules": {
    "typescript/array-type": ["error", { "default": "array-simple" }]
  }
}

What happened?

typescript-eslint allows factories.User[] when using array-simple.

Oxlint doesn't and wants to change it to Array<factories.User>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions