diff --git a/lib/configs/addon-interactions.ts b/lib/configs/addon-interactions.ts index a2800b5..5d2710a 100644 --- a/lib/configs/addon-interactions.ts +++ b/lib/configs/addon-interactions.ts @@ -7,7 +7,7 @@ export = { plugins: ['storybook'], overrides: [ { - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + 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', diff --git a/lib/configs/csf.ts b/lib/configs/csf.ts index 4f55228..5781e25 100644 --- a/lib/configs/csf.ts +++ b/lib/configs/csf.ts @@ -7,7 +7,7 @@ export = { plugins: ['storybook'], overrides: [ { - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + 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', diff --git a/lib/configs/flat/addon-interactions.ts b/lib/configs/flat/addon-interactions.ts index b55bc63..82d6aab 100644 --- a/lib/configs/flat/addon-interactions.ts +++ b/lib/configs/flat/addon-interactions.ts @@ -14,7 +14,7 @@ export = [ }, { name: 'storybook:addon-interactions:stories-rules', - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + 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', diff --git a/lib/configs/flat/csf.ts b/lib/configs/flat/csf.ts index 2bdd90a..23384d1 100644 --- a/lib/configs/flat/csf.ts +++ b/lib/configs/flat/csf.ts @@ -14,7 +14,7 @@ export = [ }, { name: 'storybook:csf:stories-rules', - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + 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', diff --git a/lib/configs/flat/recommended.ts b/lib/configs/flat/recommended.ts index b13e011..4dd59fe 100644 --- a/lib/configs/flat/recommended.ts +++ b/lib/configs/flat/recommended.ts @@ -14,7 +14,7 @@ export = [ }, { name: 'storybook:recommended:stories-rules', - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + 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', diff --git a/lib/configs/recommended.ts b/lib/configs/recommended.ts index 1035420..11d50f2 100644 --- a/lib/configs/recommended.ts +++ b/lib/configs/recommended.ts @@ -7,7 +7,7 @@ export = { plugins: ['storybook'], overrides: [ { - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + 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', diff --git a/tests/integrations/flat-config/eslint.config.js b/tests/integrations/flat-config/eslint.config.js index 84a0233..02feb2c 100644 --- a/tests/integrations/flat-config/eslint.config.js +++ b/tests/integrations/flat-config/eslint.config.js @@ -3,7 +3,7 @@ import plugin from 'eslint-plugin-storybook' export default [ ...plugin.configs['flat/recommended'], { - files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + files: ['**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '**/*.story.@(ts|tsx|js|jsx|mjs|cjs)'], rules: { 'storybook/story-exports': 'warn', },