Skip to content

chore: 🤖 remove lint rule enforcing generic array type annotation#868

Merged
punkbit merged 5 commits intomainfrom
chore/remove-lint-rule-for-forcing-array-generic-annotation
Mar 4, 2026
Merged

chore: 🤖 remove lint rule enforcing generic array type annotation#868
punkbit merged 5 commits intomainfrom
chore/remove-lint-rule-for-forcing-array-generic-annotation

Conversation

@punkbit
Copy link
Collaborator

@punkbit punkbit commented Mar 4, 2026

Why?

Removes the ESLint/TSLint rule that enforced arrays to be typed using generic syntax (Array) instead of the shorthand array syntax (T[]).

The generic array annotation style (Array) adds verbosity without meaningful benefit. Removing this lint rule allows developers to use idiomatic TypeScript, such as the more concise T[] shorthand, which reduces friction and improves readability, e.g., TypeScript docs, LSP will show T[] and not Array.

How?

  • Remove ESLint rule
  • Remove Array style accross source code

Preview?

N/A

@changeset-bot
Copy link

changeset-bot bot commented Mar 4, 2026

🦋 Changeset detected

Latest commit: 755535d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clickhouse/click-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@gjones gjones left a comment

Choose a reason for hiding this comment

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

I believe this is what was discussed in the slack thread with @hoorayimhelping. I have no horse in this race, but am +1 for code consistency.

@workflow-authentication-public
Copy link
Contributor

📚 Storybook Preview Deployed

✅ Preview URL: https://click-ac3vm1lln-clickhouse.vercel.app

Built from commit: dc2b69277979c7fbf2b02496942f860788d531b4

@punkbit punkbit merged commit 736477b into main Mar 4, 2026
7 checks passed
@punkbit punkbit deleted the chore/remove-lint-rule-for-forcing-array-generic-annotation branch March 4, 2026 16:22
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.

2 participants