B
B
billt2017-06-21 09:10:23
JavaScript
billt, 2017-06-21 09:10:23

Why does linter throw an error in vue.js?

Hello, the linter gives the following messages: https://monosnap.com/file/ys0QCKWb1yer6W5QYwWCnRBD...
I'm doing the project using vue-cli, I used to work on a poppy, there were no such problems, now such errors fly out on Windows. Moreover, if you recreate the same file, everything will be ok, but later there will be errors again.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2017-06-21
@k12th

Look in the editor settings for the type of line breaks. Ideally, install a plugin to support editorconfig and create an .editorconfig.
In general, eslint, when launched with the --fix parameter, can fix it itself.

E
Evgeny Kulakov, 2017-06-21
@kulakoff Vue.js

On unix systems, lf is added to the line feed, and on Windows, cr+lf. Linter wants the second option from you, and you have the first one in the file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question