Vue:Mixed spaces and tabs no-mixed-spaces-and-tabs 报错
1.修改目录下的.eslintrc.js文件
目录 / .eslintrc.js
2.配置关闭规则
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
parserOptions: {
parser: '@babel/eslint-parser'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-mixed-spaces-and-tabs': 0
}
}
3.重新启动项目
搞定