Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt the ESLint plugin to handle CSF factories #30170

Open
Tracked by #30166
kasperpeulen opened this issue Jan 2, 2025 · 0 comments
Open
Tracked by #30166

Adapt the ESLint plugin to handle CSF factories #30170

kasperpeulen opened this issue Jan 2, 2025 · 0 comments

Comments

@kasperpeulen
Copy link
Contributor

kasperpeulen commented Jan 2, 2025

before

import { Button } from './Button';

const meta = { component: Button };

export default meta;

export const Primary = {
  args: {
    primary: true,
    label: 'Button',
  },
};

after

import { config } from '#.storybook/preview';
import { Button } from './Button';

const meta = config.meta({ component: Button });

export const Primary = meta.story({
  args: {
    primary: true,
    label: 'Button',
  },
});
@kasperpeulen kasperpeulen changed the title Adapt the vitest plugin to handle CSF factories Adapt the ESLint plugin to handle CSF factories Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant