eslint/eslint — pull request #1413 by hraban (2014-10-29 07:08:04+00:00)
Title: New rule: lines-around-comment

(Dis)allow empty lines around comments. This patch only implements the
lines /after/ a comment line or block. If it is accepted I will adapt it
to consider preceding lines.

The implementation is fully text-based. There is no reliable access to
comments through the official AST API, so I had to resort to manual
parsing. Luckily, JS has some quirks that make it doable.

See https://github.com/eslint/eslint/issues/1344