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

csf-strict is applied on all files #155

Open
Samuel-Therrien-Beslogic opened this issue May 14, 2024 · 0 comments
Open

csf-strict is applied on all files #155

Samuel-Therrien-Beslogic opened this issue May 14, 2024 · 0 comments

Comments

@Samuel-Therrien-Beslogic

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant