Solution vue / cli3.0 syntax validation rules ESLint: Expected indentation of 2 spaces but found 4. (indent)

When you use vue / cli3.0, there may appear Goose rules

 ESLint: Expected indentation of 2 spaces but found 4. (indent)

 

Solution

1, added lintOnSave in vue.config.js in: "false",

 

 

 

New .eslintignore then in the root directory

Add then restart

*.view
*.js

 

 

There are reference address

https://blog.csdn.net/weixin_44678104/article/details/100094937 solve VScode error format

https://www.cnblogs.com/sjie/p/9884362.html solve the error console format error

 

Guess you like

Origin www.cnblogs.com/IwishIcould/p/11879386.html