webstrom 报Eslint错误

ESLint: TypeError: this.cliEngine is not a constructor

ESLint: TypeError: this.cliEngine is not a constructor,这是因为本地项目的eslint版本和webstorm的eslint插件版本不一致导致的
解决方法如下:
首先找打webstrom的安装路径:

mac如下:windows类似找到图标也是右键

在这里插入图片描述
在这里插入图片描述
找到以下路径

\plugins\JavaScriptLanguage\languageService\eslint\bin\eslint-plugin.js
在这里插入图片描述
this.cliEngine = require(packagePath + “lib/cli-engine”).CLIEngine;
在这一行添加CLIEngine即可。
对了我的webstrom版本是2019.1.1

更多推荐