requirePaddingNewLinesBeforeExport

Requires newline before module.exports

Type: Boolean

Value: true

Example

"requirePaddingNewLinesBeforeExport": true
Valid
var a = 2;

module.exports = a;

if (cond) {
   module.exports = a;
}
Invalid
var a = 2;
module.exports = a;

if (cond) {
   foo();
   module.exports = a;
}
Rule source
Test source