Storp eslint complaining about deps for stories files

This commit is contained in:
Andrew Nicolaou 2020-01-19 17:53:07 +01:00
parent b2a509bd0f
commit 71d011d824
2 changed files with 10 additions and 2 deletions

View file

@ -77,5 +77,13 @@
"__SERVER__": true, "__SERVER__": true,
"__DISABLE_SSR__": true, "__DISABLE_SSR__": true,
"__DEVTOOLS__": true "__DEVTOOLS__": true
} },
"overrides": [
{
"files": ["*.stories.jsx"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
} }

View file

@ -1,5 +1,5 @@
module.exports = { module.exports = {
stories: ['../client/**/*.stories.(jsx|js|mdx)'], stories: ['../client/**/*.stories.(jsx|mdx)'],
addons: ['@storybook/addon-actions', '@storybook/addon-docs', '@storybook/addon-knobs', '@storybook/addon-links'], addons: ['@storybook/addon-actions', '@storybook/addon-docs', '@storybook/addon-knobs', '@storybook/addon-links'],
webpackFinal: async config => { webpackFinal: async config => {
// do mutation to the config // do mutation to the config