vue project spaces error, the error does not indent, format error! ! !

vue-cli found that after building the project of writing a little code that will give an error, but the syntax of what are no problems, just because indentation, spaces, and the like , non-standard format for the beginner who is quite uncomfortable

Figure framed location will be given! !

 

Now there are two ways:

1, because you set eslint (standardized codes), if you do not want to have standardized js code, you can re-initialize turn off eslint. 

      Use ESLint to lint your code? (Y / n) This step is no option

2, there is a simple solution:

The solution is to enter the config  file is found directory  index.js file

The file useEslint property is set to false

Guess you like

Origin www.cnblogs.com/shiyiersan/p/12026647.html