Skip to content

Commit

Permalink
Update docs/rules/default-exports.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed May 17, 2024
1 parent 69de1f4 commit 92c7427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/default-exports.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Primary = {}

This rule should only be applied in your `.stories.*` files. Please ensure you are defining the storybook rules only for story files. You can see more details [here](https://github.com/storybookjs/eslint-plugin-storybook#overridingdisabling-rules).

If you're using [CSF in MDX](https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/recipes.md#csf-stories-with-mdx-docs), you should disable this rule for the stories that use CSF in MDX. You can see how to override the rule [here](https://github.com/storybookjs/eslint-plugin-storybook#overridingdisabling-rules).
If you're using Storybook 6.5 and [CSF in MDX](https://github.com/storybookjs/storybook/blob/v6.5.0/addons/docs/docs/recipes.md#csf-stories-with-mdx-docs), you should disable this rule for the stories that use CSF in MDX. You can see how to override the rule [here](https://github.com/storybookjs/eslint-plugin-storybook#overridingdisabling-rules).

## Further Reading

Expand Down

0 comments on commit 92c7427

Please sign in to comment.