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

Configure hash style #8383

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Configure hash style #8383

merged 1 commit into from
Sep 13, 2024

Conversation

gbp
Copy link
Member

@gbp gbp commented Sep 13, 2024

Allow shorthand syntax but allow key values need to be consistent.

Good:

  { foo: 'foo', bar: 'bar' }

Good:

  foo = 'foo'; bar = 'bar'
  { foo:, bar: }

Bad:

  foo = 'foo', bar = 'bar'
  { foo:, bar: bar }

[skip changelog]

Allow shorthand syntax but allow key values need to be consistent.

Good:
  { foo: 'foo', bar: 'bar' }
Good:
  foo = 'foo'; bar = 'bar'
  { foo:, bar: }
Bad:
  foo = 'foo'
  { foo:, bar: 'bar' }
@gbp
Copy link
Member Author

gbp commented Sep 13, 2024

This was getting annoying, the linter in my editor keeps saying "Omit hash value".

@gbp gbp merged commit 6a70a68 into develop Sep 13, 2024
5 checks passed
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.

1 participant