Eslint和VueJS文件。抛出错误但不修复错误 [英] Eslint and VueJS files. Throwing errors but not fixing them

查看:670
本文介绍了Eslint和VueJS文件。抛出错误但不修复错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题与Eslint。
它是在Vue文件上抛出错误,但不修复它们。



我已经检查了所有配置等。



它适用于js文件,但不适用于Vue文件。
真的很奇怪,它是在他们上面抛出错误,但是没有修复它们。它是所有关于易于修复像分号等(只是移动到ES6和Eslint所以需要清理代码),所以它很容易修复它们。



可能是什么原因?

解决方案

我发现为什么。
基本上,ESLINT在使用任何装载程序时无法修复错误。
在我的情况下,它是vue loader。
他们仍然在ESLINT团队工作,找到使用加载程序来处理修复的方法。


I have a strange issue with Eslint. It is throwing errors on Vue files, but not fixing any of them.

I have checked all config etc.

It is working for js files, but not working for Vue files. It is really strange that it is throwing errors on them, but not fixing them. It is all about easy fixes like semicolons etc (just moved to ES6 and Eslint so need to clean up code) so it easily fixing them normally.

What can be the cause?

解决方案

I found why. Basically, ESLINT is not able to fix errors when using any loaders. In my case it is vue loader. They are still working on that in ESLINT team to find the way to handle fix with loaders.

这篇关于Eslint和VueJS文件。抛出错误但不修复错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆