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

feat: Object curly newline #490

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Brianzchen
Copy link
Contributor

@Brianzchen Brianzchen commented Jul 31, 2021

@Brianzchen Brianzchen changed the title Object curly newline feat: Object curly newline Aug 2, 2021
export default {
invalid: [
// Never
{
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to have some tests when there object has multiple properties

Copy link
Contributor Author

@Brianzchen Brianzchen Aug 2, 2021

Choose a reason for hiding this comment

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

Yes I can, just to note though this rule does not cater to multi-lining multiple properties, that'll be handled by a separate rule hopefully in the near future just like standard objects https://eslint.org/docs/rules/object-property-newline.

Edit: found some bug behaviour, will fix

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.

Rule for object curly brace new line
2 participants