Skip to content

Conversation

@cylewaitforit
Copy link

@cylewaitforit cylewaitforit commented May 31, 2025

Issue: #126

What Changed

Adds a new rule to check that stories are written in csf3 format.

Storybook 9 migration guide recommends
converting to csf3.

Checklist

Check the ones applicable to your change:

  • Ran pnpm run update-all
  • Tests are updated
  • Documentation is updated

Change Type

Indicate the type of change your pull request is:

  • maintenance
  • documentation
  • patch
  • minor
  • major

severity: 'error',
docs: {
description: 'Enforce Component Story Format 3.0 (CSF3) for stories',
excludeFromConfig: true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not initially including in any config. If the csf-strict config was fixed I think this rule would fit well in that.

@cylewaitforit cylewaitforit force-pushed the rule-only-csf3 branch 2 times, most recently from 3fcd3fd to 5fa61ae Compare May 31, 2025 04:59
@cylewaitforit
Copy link
Author

With the announcement of the next version of CSF I am no longer looking to get this particular PR merged. If anyone still feels strongly or wants to use any code out of this PR they can feel free to. I may refine the rule more in my own repos before considering it again for any other CSF versions.

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

Successfully merging this pull request may close these issues.

1 participant