Tslint: Check number of empty lines between methods in classes

Created on 28 Nov 2017  ยท  7Comments  ยท  Source: palantir/tslint

Feature request

  • __TSLint version__: 5.8.0

Proposal

In our company we have style guides regarding the number of empty lines between methods in classes. Would it be possible to add a rule to check this style?

Formatting rule Declined Rule Suggestion ๐ŸŒน R.I.P. ๐ŸŒน

Most helpful comment

Anyone working on this one ?
Would be really nice to have.

All 7 comments

Could be implemented as part of #3139

This has some conceptual overlap with no-consecutive-blank-lines. If we're creating a newline rule then we should fold that functionality into the new rule as well.

Anyone working on this one ?
Would be really nice to have.

Related: #975, #3777.

If there's a need for an expanded, configurable newline rule, it probably makes sense to include options for all these issues.

Per #4534, closing this formatting rule request. If you _really_ need the rule, custom rules are always an option and can be maintained outside this repo!

๐Ÿ’€ _It's time!_ ๐Ÿ’€

TSLint is being deprecated and no longer accepting pull requests for new rules. See #4534. ๐Ÿ˜ฑ

If you'd like to see this rule implemented, you have two choices:

๐Ÿ‘‹ It was a pleasure open sourcing with you!

_If you believe this message was posted here in error, please comment so we can re-open the issue!_

๐Ÿค– Beep boop! ๐Ÿ‘‰ TSLint is deprecated ๐Ÿ‘ˆ _(#4534)_ and you should switch to typescript-eslint! ๐Ÿค–

๐Ÿ”’ This issue is being locked to prevent further unnecessary discussions. Thank you! ๐Ÿ‘‹

Was this page helpful?
0 / 5 - 0 ratings