Skip to content

linter: rule eslint/func-style missing option allowTypeAnnotation #11445

@Sysix

Description

@Sysix

What version of Oxlint are you using?

0.17.0

What command did you run?

No response

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

{
  "rules": {
    "func-style": ["error", "declaration", { "allowTypeAnnotation": true }]
  }
}

What happened?

The ESLint rule supports now an option for TS type annotations:
https://eslint.org/docs/latest/rules/func-style#allowtypeannotation

Oxlint is missing this option

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions