Closed stephenhmarsh closed 2 years ago
Hey @stephenhmarsh thanks for opening this issue! Although the export list syntax is not our recommended way to define stories, this is definitely a bug in the rule as it's supposed to check whether you are exporting stories or not. Thanks for the PR as well! It's people like you who make OSS great <3
:rocket: Issue was released in v0.5.3
:rocket:
:rocket: Issue was released in v0.5.3
:rocket:
Hello, apologies if this is not a bug but it sure seems like one to me.
Describe the bug
eslint-plugin-storybook
is throwingerror The file should have at least one story export storybook/story-exports
when using "named export list" syntax.Example:
This fails:
This passes:
To Reproduce
npm run lint
Expected behavior The named exports list syntax should be supported and this rule should not throw any errors on the example above?
Screenshots If applicable, add screenshots to help explain your problem.
Additional context This seems to have come from https://github.com/storybookjs/eslint-plugin-storybook/issues/42 and https://github.com/storybookjs/eslint-plugin-storybook/pull/44 so cc @yannbf - thanks.