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

ts/lines-between-class-members: does not apply to interface members #353

Open
5 tasks done
ygrandgirard opened this issue Apr 17, 2024 · 0 comments · May be fixed by #352
Open
5 tasks done

ts/lines-between-class-members: does not apply to interface members #353

ygrandgirard opened this issue Apr 17, 2024 · 0 comments · May be fixed by #352

Comments

@ygrandgirard
Copy link

Validations

Describe the bug

The ts/lines-between-class-members rule does not apply to interface members.

Given this config:

{
  "rules": {
    "@stylistic/ts/lines-between-class-members": "error"
  }
}

This will be reported:

class A {
  a: string;
  b: string; // Expected blank line between class members.
}

But not this:

interface A {
  a: string;
  b: string;
}

Reproduction

#352

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
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