jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 513 forks source link

Allow single line blocks with requirePaddingNewLinesAfterBlocks #2197

Closed ValYouW closed 8 years ago

ValYouW commented 8 years ago

Hi,

Is it possible to add exception to the requirePaddingNewLinesAfterBlocks if the block is a "one liner", for example allow the following:

function isSupportedTransport(transport) { return transport && gw.sockets.factory.isSupported(transport.type); }
function isPersistentTransport(transport) { return transport && gw.sockets.factory.isPersistent(transport.type); }

Thx.