[Solved] ESLint:TypeError: this.CliEngine is not a constructor

After updating the version of eslint, there is an error of typeerror: this.cliengine is not a constructor.

Solution:

1. Click Details — “find the following red path –” open the file with editing

 

2. Find the following clip

Add the content in the red box. Cliengine, save and reopen the project