Skip to content
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

Rule: no-tuple #95

Open
igorkamyshev opened this issue Apr 12, 2022 · 1 comment
Open

Rule: no-tuple #95

igorkamyshev opened this issue Apr 12, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@igorkamyshev
Copy link
Member

sample({ source: { a: $a, b: $b } })

sample({ source: [$a, $b] })

Object form is stricter, than tuple form because:

  • it is sustainable against order changing
  • it is providing more useful types (no [string, string]
@igorkamyshev igorkamyshev added enhancement New feature or request good first issue Good for newcomers labels Apr 12, 2022
@igorkamyshev
Copy link
Member Author

useUnit supports tuples as well, so we have to include it in this rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant