packages/remark-lint-no-consecutive-blank-lines/index.js
function compare(start, end, max) {
    var diff = end.line - start.line
    var lines = Math.abs(diff) - max
    var reason

    if (lines > 0) {
      reason =
        'Remove ' +
        lines +
        ' ' +
        plural('line', lines) +
        ' ' +
        (diff > 0 ? 'before' : 'after') +
        ' node'

      file.message(reason, end)
    }
  }
function compare(start, end, max) {
    var diff = end.line - start.line
    var lines = Math.abs(diff) - max
    var reason

    if (lines > 0) {
      reason =
        'Remove ' +
        lines +
        ' ' +
        plural('line', lines) +
        ' ' +
        (diff > 0 ? 'before' : 'after') +
        ' node'

      file.message(reason, end)
    }
  }
function compare ( start , end , max ) { var diff = end . line - start . line var lines = Math . abs ( diff ) - max var reason if ( lines > 0 ) { reason = 'Remove ' + lines + ' ' + plural ( 'line' , lines ) + ' ' + ( diff > 0 ? 'before' : 'after' ) + ' node' file . message ( reason , end ) } }
Compare the difference between `start` and `end`, and warn when that difference exceeds `max`.
Compare the difference between start and end and warn when that difference exceeds max .