Failed to load config "plugin:@typescript-eslint" to extend from.

I ran in to the following error trying to get work a project in JetBrains WebStorm. I spent a lot of time searching to no avail so I thought I'd throw the solution here as it's not obvious and the solution depends on the editor you are using. I kept running in to solutions using VS Code (which I sometimes use but mostly use WebStorm).

Anyway, the error (with some redaction) is the following.

Error: Failed to load config "plugin:@typescript-eslint" to extend from.
Referenced from: /Users/frankv/Github/my-project/.eslintrc.js

Error: Failed to load config "plugin:@typescript-eslint" to extend from.
Referenced from: /Users/frankv/Github/my-project/.eslintrc.js
    at configInvalidError (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:290:9)
    at ConfigArrayFactory._loadExtendedPluginConfig (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:827:19)
    at ConfigArrayFactory._loadExtends (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:779:29)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:720:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:665:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:758:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (/Users/frankv/Github/my-project/node_modules/@eslint/eslintrc/lib/config-array-factory.js:665:20)
Process finished with exit code -1

Now mind you, one precondition for the following solution is that eslint runs and passes when ran manually.

The error above occurs when the IDE attempts to run auto lint.

Solution, JetBrains

In this case, go in to the IDE options and adjust the "Run for files". The default included js and jxs and this was causing the problem. By removing js,jsx, the problem was solved!

JetBrains WebStorm's Preferences window: ESLINT configuration

Mind you, you may need to tweak the values differently than I did but this should get you in the correct place to fix the issue.

Frank Villasenor

Frank Villasenor

Owner and principal author of this site. Professional Engineering Lead, Software Engineer & Architect working in the Chicagoland area as a consultant. Cert: AWS DevOps Pro
Chicago, IL