vscode eslint 验证 (vue import 警告 ESLint is disabled since its execution has not been approved or ...)

csdn Dragon King (here is almost useless, anxious to directly text)

已经三天没有任务了,看了三天文档,直接想吐了,巨无聊(度日如年)。封装点公司的组件吧,以后方便一点。
本想用 `ts` 来写, 但是有几家公司会用到呢。。。
用 eslint 是我最后的倔强了,然后就开始折磨了。。。
一切仅仅有序的进行着:
	- vue/cli 搭建项目(eslint-airbnb);
	- 启动项目、 初始化样式;
	- 正常编写;
	- 自测;
	- 完成一个模块(怎么还有三个多小时。。。煎熬);
---- 不对劲!!! eslint 格式怎么没有生效!!!
检查 `package.json` 有eslint配置 
检查插件: `ESLint` 、 `Vetur` 都有的呀。还是找度娘吧。。。
Soga!需要手动配置自动补全检查 "editor.codeActionsOnSave" 我配。(“eslint.autoFixOnSave” 对于这个我只想说我次奥。。都2021了,没见setting.json都提示废弃了嘛,还有一堆人ctrl c + ctrl v 头疼。。)
但是! 都没生效,配置setting.json 需要重启软件? (心里有一种不祥的预感 ( ̄ェ ̄!)  )
果然!重启了没有生效,然后百度了半天都是一堆类似的文章。。。(逐渐意识到事情的严重性)
突然看见一篇不一样的 `vue create的项目 在vue.config.js中 ‘lintOnSave: false‘,
我次奥,还是不对劲!!!(终于工作不在这么无聊了 (๑╹◡╹) ) 实际(T_T)
又捣鼓一段时间。。。肯定是软件出问题了,重新安装!!!算了回去用自己电脑试试再说吧,放弃了今天
何苦为难打工的自己。放宽心,反正以后又不会用到。退一步。。。越想越气!
又搜了个把小时,全都是类似的文章。。。次奥了。。。只有半个小时下班了,痛苦并快乐着。

text

  • Sudden! ! ! There seems to be something wrong with the eslint icon in the lower right corner! ! !
  • Tap to choose Allow Everywhere! ! ! My time! ! ! The familiar error message is back! For the first time, I felt that reporting an error was so amiable.

The following is normal:
insert image description here
After writing the article, I only have a few minutes to get off work, so happy~~~

Guess you like

Origin blog.csdn.net/cc_King/article/details/115914069