eslint-plugin-storybook
eslint-plugin-storybook copied to clipboard
`context-in-play-function` does not check invocked element type
Describe the bug
The new context-in-play-function returns an error when calling play() function on a object which is not a story.
I don't think this should be the case
Expected behavior
I expect the context-in-play error to be triggered only when called against a story element
Screenshots
Thanks a lot for opening this issue @maxired !