Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Dec 2, 2025

This rule ended up getting in our way more than helping. Type arguments can sometimes be useful to include even when they're not strictly needed, so that the reader doesn't have to dig into the type definition to discover the default value.

Closes #413


Note

Disables the @typescript-eslint/no-unnecessary-type-arguments rule in the TypeScript ESLint config and documents the change in the changelog.

  • TypeScript ESLint config:
    • Disable @typescript-eslint/no-unnecessary-type-arguments in packages/typescript/src/index.mjs (adds rationale comment).
  • Rules snapshot:
    • Update packages/typescript/rules-snapshot.json to set @typescript-eslint/no-unnecessary-type-arguments to off.
  • Changelog:
    • Add Unreleased entry noting the rule is disabled in packages/typescript/CHANGELOG.md.

Written by Cursor Bugbot for commit 7a6bc7a. This will update automatically on new commits. Configure here.

@Gudahtt Gudahtt marked this pull request as ready for review December 2, 2025 16:36
@Gudahtt Gudahtt requested a review from a team as a code owner December 2, 2025 16:36
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM! The reasoning make real sense.

This rule ended up getting in our way more than helping. Type arguments
can sometimes be useful to include even when they're not strictly
needed, so that the reader doesn't have to dig into the type definition
to discover the default value.

Closes #413
@Gudahtt Gudahtt force-pushed the disable-no-unnecessary-type-arguments branch from f9b673c to 7a6bc7a Compare December 2, 2025 17:40
@Gudahtt Gudahtt enabled auto-merge (squash) December 2, 2025 17:40
@Gudahtt Gudahtt merged commit 383fbec into main Dec 2, 2025
26 checks passed
@Gudahtt Gudahtt deleted the disable-no-unnecessary-type-arguments branch December 2, 2025 17:43
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.

Disable @typescript-eslint/no-unnecessary-type-arguments

3 participants