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

🎗Official ESLint plugin for Storybook

Results 60 eslint-plugin-storybook issues
Sort by recently updated
recently updated
newest added

**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** ![image](https://user-images.githubusercontent.com/1671563/141691185-22dd40ea-b205-47fe-a8be-4500fff5a2b7.png)

bug

**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';`...

needs followup

**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...

feature request

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...

feature request

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.*'...

feature request

**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...

feature request