1、解决方案

  找到webstorm安装目录下ESlint的配置文件,比如:E:\soft\webstorm\WebStorm 2018.3.6\plugins\JavaScriptLanguage\languageService\eslint\bin\eslint-plugin.js。

1 // 配置前
2 // this.cliEngine = require(this.basicPath + "lib/cli-engine");
3 // 配置后
4 this.cliEngine = require(this.basicPath + "lib/cli-engine").CLIEngine;

  具体配置,如下所示:

WbeStorm插件ESlint报错TypeError this.cliEngine is not a constructor

 

   修改完毕,保存,重启WebStorm即可。

 

相关文章:

  • 2022-12-23
  • 2021-10-13
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-11-08
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2021-09-18
  • 2022-12-23
  • 2022-01-22
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案