Skip to content

Commit

Permalink
add to other configs too
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Feb 16, 2024
1 parent ca2eaaf commit b9dd4e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/configs/addon-interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export = {
{
files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'],
rules: {
'react-hooks/rules-of-hooks': 'off',
'import/no-anonymous-default-export': 'off',
'storybook/await-interactions': 'error',
'storybook/context-in-play-function': 'error',
Expand Down
1 change: 1 addition & 0 deletions lib/configs/csf-strict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
export = {
extends: require.resolve('./csf'),
rules: {
'react-hooks/rules-of-hooks': 'off',
'import/no-anonymous-default-export': 'off',
'storybook/no-stories-of': 'error',
'storybook/no-title-property-in-meta': 'error',
Expand Down
1 change: 1 addition & 0 deletions lib/configs/csf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export = {
{
files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'],
rules: {
'react-hooks/rules-of-hooks': 'off',
'import/no-anonymous-default-export': 'off',
'storybook/csf-component': 'warn',
'storybook/default-exports': 'error',
Expand Down

0 comments on commit b9dd4e1

Please sign in to comment.