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 proposal: Enforce blank lines around tests #185

Closed
jdoubleu opened this issue Dec 18, 2018 · 1 comment
Closed

Rule proposal: Enforce blank lines around tests #185

jdoubleu opened this issue Dec 18, 2018 · 1 comment

Comments

@jdoubleu
Copy link

It would be nice to have a rule which enforces blank links around it() test statements.

I expect the rule to disallow:

...
it('should do something', () => {
  ...
})
it('should test other thing', () => {
})

But allows:

...
it('should do something', () => {
  ...
})

it('should test other thing', () => {
})

This is similar to the padding-line-between-statements ESLint rule but is more specific about the statement (i.e. it() function call).

@lo1tuma
Copy link
Owner

lo1tuma commented Feb 19, 2020

Duplicate of #145.

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

No branches or pull requests

2 participants