storybookjs / eslint-plugin-storybook

🎗Official ESLint plugin for Storybook
MIT License
238 stars 42 forks source link

csf-strict is applied on all files #155

Open Samuel-Therrien-Beslogic opened 1 month ago

Samuel-Therrien-Beslogic commented 1 month ago

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.