Skip to content

Commit 71d011d

Browse files
committed
Storp eslint complaining about deps for stories files
1 parent b2a509b commit 71d011d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.eslintrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,13 @@
7777
"__SERVER__": true,
7878
"__DISABLE_SSR__": true,
7979
"__DEVTOOLS__": true
80-
}
80+
},
81+
"overrides": [
82+
{
83+
"files": ["*.stories.jsx"],
84+
"rules": {
85+
"import/no-extraneous-dependencies": "off"
86+
}
87+
}
88+
]
8189
}

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
stories: ['../client/**/*.stories.(jsx|js|mdx)'],
2+
stories: ['../client/**/*.stories.(jsx|mdx)'],
33
addons: ['@storybook/addon-actions', '@storybook/addon-docs', '@storybook/addon-knobs', '@storybook/addon-links'],
44
webpackFinal: async config => {
55
// do mutation to the config

0 commit comments

Comments
 (0)