Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webstorm cannot find plugin as a part of .eslintrc #249

Closed
ViktorSoroka07 opened this issue Feb 22, 2019 · 1 comment
Closed

Webstorm cannot find plugin as a part of .eslintrc #249

ViktorSoroka07 opened this issue Feb 22, 2019 · 1 comment

Comments

@ViktorSoroka07
Copy link

ViktorSoroka07 commented Feb 22, 2019

package.json

"devDependencies": {
    "eslint": "^5.14.1",
    "eslint-plugin-unicorn": "^7.1.0"
}

.eslintrc

{
  "globals": {
    "process": true
  },
  "plugins": ["unicorn"],
  "root": true,
  "rules": {
    "unicorn/catch-error-name": "error"
  }
}

And eventually get an error:

Error: Failed to load plugin unicorn: Cannot find module 'eslint-plugin-unicorn'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.resolve (internal/modules/cjs/helpers.js:30:19)
    at Plugins.load (<path>/node_modules/eslint/lib/config/plugins.js:104:29)
    at Array.forEach (<anonymous>)
    at Plugins.loadAll (<path>/node_modules/eslint/lib/config/plugins.js:165:21)
    at loadFromDisk (<path>/node_modules/eslint/lib/config/config-file.js:506:35)
    at Object.load (<path>/node_modules/eslint/lib/config/config-file.js:564:20)
    at Config.getLocalConfigHierarchy (<path>/node_modules/eslint/lib/config.js:240:44)
    at Config.getConfigHierarchy (<path>/node_modules/eslint/lib/config.js:192:43)
    at Config.getConfigVector (<path>/node_modules/eslint/lib/config.js:299:21)
@fregante
Copy link
Collaborator

fregante commented Oct 1, 2020

This isn't unlikely to be a eslint-plugin-unicorn issue. Check your WebStorm configuration and make sure that eslint-plugin-unicorn is installed where it expects it to be (locally or globally?)

Examples:

@fregante fregante closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants