Skip to content

Commit 80b488e

Browse files
committed
feat: story-files can import from story-book
1 parent 7030cf1 commit 80b488e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

eslint.config.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,16 @@ export default typescript.config([
987987
settings: {
988988
// order matters here in case of nested directories
989989
'boundaries/elements': [
990+
// --- stories ---
991+
{
992+
type: 'story-files',
993+
pattern: 'static/**/*.stories.{ts,tsx}',
994+
mode: 'full',
995+
},
996+
{
997+
type: 'story-book',
998+
pattern: 'static/app/stories',
999+
},
9901000
// --- specifics ---
9911001
{
9921002
type: 'devtoolbar',
@@ -1108,6 +1118,10 @@ export default typescript.config([
11081118
from: ['configs'],
11091119
allow: ['configs', 'build-utils'],
11101120
},
1121+
{
1122+
from: ['story-files'],
1123+
allow: ['core*', 'sentry*', 'story-book'],
1124+
},
11111125
// todo: sentry* shouldn't be allowed
11121126
{
11131127
from: ['core'],

0 commit comments

Comments
 (0)