Vue报错:Mixed spaces and tabs no-mixed-spaces-and-tabs 解决办法
Vue报错:Mixed spaces and tabs no-mixed-spaces-and-tabs 解决办法package.json的eslintrcr配置项rules里,手动添加’no-mixed-spaces-and-tabs’,然后定义为0,关闭规则“no-mixed-spaces-and-tabs”:0注意:使用的是vue-cil2021的最新版本搭建的vue 2.0项目补充:使用下
·
Vue报错:Mixed spaces and tabs no-mixed-spaces-and-tabs 解决办法
package.json的eslintrcr配置项rules里,手动添加’no-mixed-spaces-and-tabs’,然后定义为0,关闭规则
“no-mixed-spaces-and-tabs”:0
注意:使用的是vue-cil2021的最新版本搭建的vue 2.0项目
补充:使用下面的配置可以减少很多语法检查的报错信息,可以配置使用然后重启项目。
"eslintConfig": {
"root": false,
"env": {
"node": false
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {
"generator-star-spacing": "off",
"no-tabs":"off",
"no-unused-vars":"off",
"no-console":"off",
"no-irregular-whitespace":"off",
"no-debugger": "off",
"no-mixed-spaces-and-tabs":0
}
},
更多推荐
已为社区贡献1条内容
所有评论(0)