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,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true
}
},
"overrides": [
{
"files": ["*.stories.jsx"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}

View File

@ -1,5 +1,5 @@
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'],
webpackFinal: async config => {
// do mutation to the config