eslint-plugin-import-newlines
eslint-plugin-import-newlines copied to clipboard
Added `allowBlankLines` option to not error when blank lines are encountered
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
.