Skip to content

linter: id-length add option to ignore generics #19617

@christopher-buss

Description

@christopher-buss

In the oxlint rule, a type like:

export type Example<T> = T extends Array<infer U> ? U : never;

T and U both get picked up if id-length is set to 2 in this case. In the original javascript rule, it skipped over generics because it's not TypeScript syntax. In oxlint, this gets linted.

I think it being linted is actually a reasonable thing, but I would like the option at the very least to turn this off 👍

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions