BenoitZugmeyer / eslint-plugin-html

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

eol-last errors reported on the wrong line #63

Closed Standard8 closed 7 years ago

Standard8 commented 7 years ago

Using this code:

<html>
<head>
  <title>Test page</title>
</head>
<body>
  <script>document.write("Hello world!");</script>
</body>
</html>

I get the output:

test.html
  9:1  error  Newline required at end of file but not found.  eol-last (eslint)

However, it should be saying the error is on line 6.