eslint-plugin-storybook icon indicating copy to clipboard operation
eslint-plugin-storybook copied to clipboard

`context-in-play-function` does not check invocked element type

Open maxired opened this issue 3 years ago • 1 comments

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

Screenshot 2021-12-16 at 08 21 46

maxired avatar Dec 16 '21 07:12 maxired

Thanks a lot for opening this issue @maxired !

yannbf avatar Dec 16 '21 19:12 yannbf