Open dartess opened 1 year ago
I made implementations for internal use, they are suitable for our case, but I'm sure they do not cover many edge cases.
https://gist.github.com/dartess/615fd442461db793a417def8e5060681
Add meta-satisfies-type rule https://github.com/storybookjs/eslint-plugin-storybook/pull/124
Is your feature request related to a problem? Please describe.
Each default export must be typed as Meta. Each exported story must be typed as StoryObj.
Describe the solution you'd like
export default
must be an object and must containsatisfies Meta< ... >
export ...
should be typed asStoryObj< ... >
orStory
(https://storybook.js.org/docs/react/configure/typescript#write-stories-with-typescript)