error
success
use sublime text3 and vue plugin
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 standard
or 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 ^^
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
standard
orairbnb
).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 calledno-trailing-spaces
as the error message shows. So disable it like this: