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

generic-spacing only ignores line breaks when there’s no indentation #456

Open
sonicdoe opened this issue Nov 30, 2020 · 0 comments
Open
Labels

Comments

@sonicdoe
Copy link
Contributor

The generic-spacing rule was updated with #430 to not error when using line breaks. However, this only works when there’s no indentation. For example:

// Same pattern as in the readme. Doesn’t error.
type X = Promise<
  (foo),
  bar,
  (((baz))),
>

// Same pattern as above. Errors with:
// There must be no space at end of "Promise" generic type annotation
function foo() {
  type X = Promise<
    (foo),
    bar,
    (((baz))),
  >
}
@gajus gajus added the bug label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants