Skip to content

update eslint rule on array-type #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

beenotung
Copy link
Contributor

to make the code more concise on array of union type

PR Checklist

Overview

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Agh, sorry, I was incorrect when I indicated array-simple would be an ok rule setting to take in. I was mixing it up with the default one that prefers T[], which is this repository's preference.

IMO Array<T> should be a discouraged construct in the type system because:

  • It's extra characters to achieve the same thing as T[]
  • JavaScript usage generally discourages Array(), with [] as the preference

@JoshuaKGoldberg
Copy link
Member

Closing this PR as non-actionable.

I know it must be annoying to have a change indicated as favorable in one PR and not in another, my sincere apologies.

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