Skip to content

Enforce generic parameter length of at least 3 characters#292

Merged
Mrtenz merged 1 commit intomainfrom
mrtenz/longer-generics
May 26, 2023
Merged

Enforce generic parameter length of at least 3 characters#292
Mrtenz merged 1 commit intomainfrom
mrtenz/longer-generics

Conversation

@Mrtenz
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz commented May 25, 2023

Description

This pull request adds a new rule that enforces all generic parameters to have a length of at least 3 characters.

Before this change, this is allowed:

type Foo<T> = T;

After this change, you can do something like this instead:

type Foo<Type> = Type;

Changes

  1. Add a new rule to enforce the minimum length of generic parameters at 3 characters.

@Mrtenz Mrtenz requested a review from a team as a code owner May 25, 2023 19:42
Copy link
Copy Markdown
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants