question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`error eol-last Newline required at end of file but not found` syntax on Home.vue

See original GitHub issue

Just init a bran new project with

$ vue init webpack vocabulary2
screen shot 2016-01-07 at 17 30 24

I just got this error eol-last Newline required at end of file but not found syntax on Home.vue.

But the Newline is there. And I have no idea where ‘//’ come from.

My environment setup:

screen shot 2016-01-07 at 17 30 41

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

33reactions
Almusamimcommented, Jul 8, 2017

@fionagithub

I was getting this error testin out nuxt as well error Newline required at end of file but not found eol-last

inserting a blank line at the bottom of the xxx.vue file fixed the issue for me

15reactions
aguegucommented, Jan 7, 2016

quick fix with

/* eslint-disable eol-last */ 

?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turn off eslint warning: Newline required at end of file but not ...
I fixed it by doing "eol-last": 0, "no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],. eol-last seems to take enums now so 0...
Read more >
eol-last - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
vuejs/vue - Gitter
ERROR in ./src/main.js. ✘ http://eslint.org/docs/rules/eol-last Newline required at end of file but not found
Read more >
Consistent JavaScript Code - Kiwee
We have ESLint installed in our project, but we need to configure it to ... error Newline required at end of file but...
Read more >
Airbnb JavaScript Style Guide()
Note: this guide assumes you are using Babel, and requires that you use ... 3.1 Use the literal syntax for object creation. eslint:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found