ESLint报错已解决 ESLint: Initialization error (ESLint). packagePath is not defined

鬼知道自己操作了什么,导致ESLint报错:
ESLint: Initialization error (ESLint). packagePath is not defined
如下图:
在这里插入图片描述
查了很久在这个文章里看到了一个突破口
https://bbs.csdn.net/topics/396032159?list=38297183

在应用程序里找到phpStorm右键显示包内容在Contents\plugins\JavaScriptLanguage\languageService\eslint\bin\eslint-plugin.js
在这里插入图片描述

eslint-plugin.js
在这里插入图片描述
把22行打开之后,注释掉23行

我以为这样就行了,重启了项目
又报了另外一个错(我心态超好~~~)

TypeError: this.cliEngine is not a constructor

具体解决办法:
https://blog.csdn.net/weixin_39177580/article/details/107613334


版权声明:本文为weixin_39177580原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。