idea编译器vue缩进报错问题如何解决(idea,vue,开发技术)

时间:2024-05-03 03:15:41 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

这篇文章主要介绍“idea编译器vue缩进报错问题如何解决”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“idea编译器vue缩进报错问题如何解决”文章能帮助大家解决问题。

问题描述:

idea编译器出现Vue缩进报错

✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
src\components\Home.vue:6:1
export default {
^

✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
src\components\Home.vue:7:1
name: 'Home'
^

✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
src\components\Home.vue:8:1
}
^

✘ 3 problems (3 errors, 0 warnings)

解决方案:

idea编译器vue缩进报错问题如何解决

在.eslintrc.js 里加入这三行代码即可

'no-tabs':'off','indent':'off','space-before-function-paren':0

加入后样子

rules:{//allowasync-await'generator-star-spacing':'off',//allowdebuggerduringdevelopment'no-debugger':process.env.NODE_ENV==='production'?'error':'off','no-tabs':'off','indent':'off','space-before-function-paren':0}

关于“idea编译器vue缩进报错问题如何解决”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注亿速云行业资讯频道,小编每天都会为大家更新不同的知识点。

本文:idea编译器vue缩进报错问题如何解决的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:Python中的tkinter库怎么用下一篇:

4 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18