Skip to content

csf-strict is applied on all files

Open

Description

Describe the bug
The csf-strict preset isn't restricted to stories, unlike the csf and recommended presets. This causes the following two rules to be disabled everywhere:

'react-hooks/rules-of-hooks': 'off',
'import/no-anonymous-default-export': 'off',

To Reproduce
https://github.com/storybookjs/eslint-plugin-storybook/blob/main/lib/configs/csf-strict.ts

Expected behavior
csf-strict preset to be applied only to stories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions