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 for object curly brace new line #468

Open
Brianzchen opened this issue Mar 12, 2021 · 1 comment · May be fixed by #490
Open

Rule for object curly brace new line #468

Brianzchen opened this issue Mar 12, 2021 · 1 comment · May be fixed by #490

Comments

@Brianzchen
Copy link
Contributor

Brianzchen commented Mar 12, 2021

type Obj = {
  test: number };

The above should error and instead be fixed to

type Obj {
  test: number,
};

Rule that does patterns similar to this https://eslint.org/docs/rules/object-curly-newline

@Brianzchen
Copy link
Contributor Author

There's a separate rule https://eslint.org/docs/rules/object-property-newline that can be done later

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 a pull request may close this issue.

1 participant