【ESLint语法报错】error Mixed spaces and tabs no-mixed-spaces-and-tabs

【原因】

在开发过程中使用了ESLint,用来规范代码风格。eslint是语法检查工具,缺点是对所写代码有些规范实在苛刻。

【报错】

error Mixed spaces and tabs no-mixed-spaces-and-tabs

【解决方法】

在package.json找到eslintConfig ,在其rules下加入"no-mixed-spaces-and-tabs":0  --------->忽略因为空格的使用导致的错误。

猜你喜欢

转载自blog.csdn.net/qq_54639969/article/details/132004113
今日推荐