BenoitZugmeyer / eslint-plugin-html

An ESLint plugin to extract and lint scripts from HTML files.
ISC License
430 stars 51 forks source link

Stop non-JS lines breaking no-multiple-empty-lines #8

Closed adalinesimonian closed 8 years ago

adalinesimonian commented 8 years ago

Prior, the series of empty lines in the document that represent non-JavaScript code would break the no-multiple-empty-lines rule. Instead of making empty lines, this patch fills those lines with comments, that in turn have the spaced-comment rule disabled to avoid causing errors if the filler comment doesn't match with the code's style.

BenoitZugmeyer commented 8 years ago

Your patch seems fine, but please fix failing unit tests.