天天看点

Vue 项目启动抛出 Expected indentation of 2 spaces but found 1 tab Vue 项目启动抛出 Expected indentation of 2 spaces but found 1 tab

版权声明:本文首发 http://asing1elife.com ,转载请注明出处。 https://blog.csdn.net/asing1elife/article/details/82766858

Vue 项目启动抛出 Expected indentation of 2 spaces but found 1 tab

该问题是由于 ESLint 的验证规则不匹配

更多精彩

解决方式

  1. 在 .eslintrc.js 文件的 rules 中加入

    'no-tabs': 'off'

    即可不检测该问题
// https://eslint.org/docs/user-guide/configuring

module.exports = {
	...
  'rules': {
		...
		'no-tabs': 'off'
  }
}
                

继续阅读