visual-studio-code - [eslint] Unexpected tab character. (no-tabs)
本文介绍了visual-studio-code - [eslint] Unexpected tab character. (no-tabs)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
今天第一次使用 VScode 编写代码,遇到一个问题
编辑器报错为:
[eslint]
Unexpected tab character. (no-tabs)
可是项目的并没有设置 no-tabs
的限制,求大神帮忙?
代码片段截图:
解决方案
在eslint的配置文件中(.eslintrc)rules项中添加一行:"no-tabs:"off",问题就解决了
这篇关于visual-studio-code - [eslint] Unexpected tab character. (no-tabs)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文