eslint-plugin-storybook
eslint-plugin-storybook copied to clipboard
🎗Official ESLint plugin for Storybook
**Describe the bug** I occasionally get a popup complaining about a failed destructure: ``` [Error - 1:05:57 PM] ESLint stack trace: [Error - 1:05:57 PM] TypeError: Cannot destructure property 'id'...
Issue: # ## What Changed i was getting crashes in vs code without this check. if you want you could also enable the typescript `noUncheckedIndexedAccess` option to more easily catch...
Issue: #47 ## What Changed ## Checklist Check the ones applicable to your change: - [x] Ran `yarn update-all` - [x] Tests are updated - [x] Documentation is updated ##...
**Describe the bug** await-interactions isn't verifying that we're actually using `userEvent` from `@storybook/testing-library`. The rule should not apply for everything that happens to be called `userEvent`. **To Reproduce** 
**Is your feature request related to a problem? Please describe.** Warn/error when `storyName` is a case-insensitive variant of the name generated by the export name: e.g. `WithText.storyName = 'With Text';`...
**Is your feature request related to a problem? Please describe.** Some of our CSF3 stories export option arrays. These get imported by other stories, for example to loop through options...
It is possible to specify an empty object for `args`: ```js // Button.stories.js export default { title: 'Button', component: Button, args: {}, }; ``` Should such a case be detected...
When the user specifies a value for `actions.argTypesRegex` such as this one (copy/pasted from the [actions addon documentation](https://storybook.js.org/docs/react/essentials/actions)): ```js // .storybook/preview.js export const parameters = { actions: { argTypesRegex: '^on.*'...
**Describe the bug** When spreading in an object into the default export of a stories-file, I noticed that at least the `title` property must be set directly, or else the...
**Is your feature request related to a problem? Please describe.** According to https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#string-literal-titles, dynamic titles are going to be prohibited in 7.0. It might be nice to have a linting...