Closed jacobgavin closed 2 years ago
Hey @jacobgavin thanks for opening this issue!
Could you please do the following in VSCode: Restart ESLint server:
Sometimes that's all you need to make ESLint align with newly installed packages. If that does not work, I'd love to help, but for that I'd need a reproduction repo. Could you somehow set one up?
Thanks @yannbf that works! I have never experienced this issue before when adding any other eslint-plugin.
Thanks @yannbf that works! I have never experienced this issue before when adding any other eslint-plugin.
You know, sometimes VSCode derps hehe If you come across any other issues feel free to share more feedback, it's super valuable to us! Thanks for using this plugin!
Describe the bug Eslint throws error when trying to format onSave in Visual Studio Code. I have tried to delete
node_modules
andpackage-lock.json
and installed all packages again but it didn't work.eslint-plugin-storybook
exists in mynode_modules
folder.(node:2024) UnhandledPromiseRejectionWarning: Error: Failed to load plugin 'storybook' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-storybook'
Expected behavior I expect eslint to run --fix when saving a file in VS Code.
Additional context If I remove
"plugin:storybook/recommended"
from my extends in .eslintrc.json it runs eslint onSave without errors.Other eslint-plugins: