vue template add blank line error way?

Created on 2 Sep 2016  ·  7Comments  ·  Source: vuejs/vue

error
image
image

success
image
image

use sublime text3 and vue plugin

Most helpful comment

please get familiar with the way eslint works.

The vue-cli template that you use extends a set of eslint rules (depoending on what you chose when during init, either standardor airbnb).

If you don't like any of those rules, you will have to overwrite them in your .eslintrc.js file. In your case, the rule you want to change (disable) is called no-trailing-spaces as the error message shows. So disable it like this:

rules: {
  'no-trailing-spaces': 0 // set it to 1 to get a warning.
}

All 7 comments

not related to vue.
Please read the error carefully: Trailing spaces not allowed

thanks, this standard too strict....

you can change the rules in .eslintrc.js

i didn't change, but i try to delete, no effect

please get familiar with the way eslint works.

The vue-cli template that you use extends a set of eslint rules (depoending on what you chose when during init, either standardor airbnb).

If you don't like any of those rules, you will have to overwrite them in your .eslintrc.js file. In your case, the rule you want to change (disable) is called no-trailing-spaces as the error message shows. So disable it like this:

rules: {
  'no-trailing-spaces': 0 // set it to 1 to get a warning.
}

thanks, I get to this skill

thanks @LinusBorg, you save my time ^^

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bfis picture bfis  ·  3Comments

robertleeplummerjr picture robertleeplummerjr  ·  3Comments

gkiely picture gkiely  ·  3Comments

guan6 picture guan6  ·  3Comments

bdedardel picture bdedardel  ·  3Comments