eslint-plugin-import-newlines icon indicating copy to clipboard operation
eslint-plugin-import-newlines copied to clipboard

Added `allowBlankLines` option to not error when blank lines are encountered

Open Cipscis opened this issue 3 months ago • 0 comments

Resolves #16

This PR adds an allowBlankLines configuration option which suppresses the noBlankBetween and limitLineCount errors, in order to allow import statements that contain one or more blank lines. It does not change the autofix behaviour at all, and defaults to false to preserve existing default behaviour.

The only tests I've added are that the existing tests for noBlankBetween and limitLineCount will be treated as valid if allowBlankLines is set to true.

Cipscis avatar Mar 10 '24 00:03 Cipscis