storybookjs / eslint-plugin-storybook

🎗Official ESLint plugin for Storybook
MIT License
248 stars 56 forks source link

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

Open maxired opened 2 years ago

maxired commented 2 years ago

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
yannbf commented 2 years ago

Thanks a lot for opening this issue @maxired !