Included in these configurations:
- csf-strict
- flat/csf-strict
Starting in CSF 3.0, story titles can be generated automatically. You can still specify a title like in CSF 2.0, but if you don't specify one, it can be inferred from the story's path on disk. This rule aims to enforce not setting a title, making the codebase consistent.
Examples of incorrect code for this rule:
export default {
title: 'Components/Forms/Input',
component: Input,
}
Examples of correct code for this rule:
export default {
component: Input, // no title necessary, it will be inferred from path on disk!
}
If you're not strictly enforcing this rule in your codebase (thus allowing custom titles), you should turn this rule off.
You can find more information about CSF3 and story titles here: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#optional-titles