ESLint plugin for Webstorm is not compatible with version 2020.3?

I upgraded to Webstorm 2020.3.  I want to run ESLint, but it doesn't show up in Preferences > Plugins > Marketplace.  I tried downloading it directly from the marketplace in the browser (https://plugins.jetbrains.com/plugin/7494-eslint).  I got the latest version, but when I tried to add it to Webstorm, I got a message that the package is not compatible with the current version.  Is ESLint not supported by Webstorm 2020?

0
3 comments

Hi there,

That plugin is not made by JetBrains. https://github.com/idok/eslint-plugin

If you need to use _that_ plugin then contact plugin author about that.

1

Ok, Let me rephrase my question then: when I try to enable ESLint in Webstorm 2020, I get the following error:

Problem with ESLint reformatting:
app.module.ts: SyntaxError: Failed to load plugin 'jsdoc' declared in 'package.json » ../eslint-config-module/index.js': Unexpected token {
Referenced from: /Users/atalis/dev/lockhart/eos/packages/eslint-config-module/index.js
/Users/atalis/dev/lockhart/eos/packages/notifications/node_modules/eslint-plugin-jsdoc/dist/jsdocUtils.js:427
} catch {//
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)

I can run eslint from command line.  It is only when Webstorm is trying to run it does this error come up.  I tried both automatic and manual ESLint configurations in Preferences, but the issue is still there.  How do I (or can I) enable ESLint in Webstorm? 

0

could you share a minimal sample project the issue can be repeated with?

0

Please sign in to leave a comment.