ESLint is disabled since its execution has not been approved or denied yet

时间:2021-03-15 10:51:43   收藏:0   阅读:0

VS Code 装好ESLint 插件报黄线的问题,具体解决方法如下所示:

ESLint is disabled since its execution has not been approved or denied yet. Use the light bulb menu to open the approval dialog.eslint

技术图片

查了翻译,说是什么被禁用了,我的插件明明是开的呀。
去网上查了一圈也没有看到和我一样的问题。我英语不是很好,所以碰了不少壁。
其实这个问题解决起来很简单。确实是插件没有打开。
看你的VS Code 右下角

技术图片

如果是这样说明 ESLint 插件没有启用,此时点击一下。会有这样的弹出框。

技术图片

选择第一项就是全局都启用了,以后安心使用就好啦!

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!