addons: [
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@nx/react/plugins/storybook', // This has an error
'@nx/react', // This will not have an error, but it's incorrect path
],
Keep in mind that it's not possible to install @nx/react/plugins/storybook, so my suggestion if to check for partial dep match instead of full path.
To Reproduce
Steps to reproduce the behavior:
Start nx monorepo
Add react application
Set up storybook with nx generator
Configure eslint-plugin-storybook with mentioned rule
Check error on main.ts
Expected behavior
A clear and concise description of what you expected to happen.
Describe the bug Potentially unwanted error report when using a submodule from a dependency.
Ie, if package.json had these packages:
We get a false positive as described below:
Keep in mind that it's not possible to install
@nx/react/plugins/storybook
, so my suggestion if to check for partial dep match instead of full path.To Reproduce Steps to reproduce the behavior:
main.ts
Expected behavior A clear and concise description of what you expected to happen.
Screenshots