Skip to content

define maximum number of empty lines #164

Open
@stigh

Description

@stigh

Today fprettify will not allow more than 1 consecutive empty lines. Personally I like to keep 2 empty lines between subroutines and functions for improved readability.

See inspiration from eslint here: https://eslint.style/rules/js/no-multiple-empty-lines. According to eslint documentation:

Some developers prefer to have multiple blank lines removed, while others feel that it helps improve readability. Whitespace is useful for separating logical sections of code, but excess whitespace takes up more of the screen.

I see there is a PR in #106, which seem to have been closed unintentionally. --keep-blank-lines would solve my issue, but I think an even better solution would be to define a maximum value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions