Skip to content

Commit

Permalink
docs(storybook): remove console addons
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-master committed Aug 8, 2021
1 parent 3a3a641 commit 5b87482
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,4 @@
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import { withConsole } from '@storybook/addon-console';
import { addDecorator } from '@storybook/react';

addDecorator((storyFn, context) =>
withConsole({
panelExclude: [
/Warning/,
/error/,
/warn/,
/Error/,
/Illegal mix/,
/Ignored an update to unaccepted module/,
/but no exported stories/,
/a story file/,
],
// consoleExclude: [
// /error/,
// /warn/,
// /Warning/,
// /Error/,
// /Ignored an update to unaccepted module/,
// /`waring message`/,
// /Illegal mix/,
// /`Found a story file for`/,
// /but no exported stories/,
// ],
})(storyFn)(context),
);

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@storybook/addon-actions": "^6.4.0-alpha.24",
"@storybook/addon-console": "^1.2.3",
"@storybook/addon-essentials": "^6.4.0-alpha.24",
"@storybook/addon-knobs": "^6.3.0",
"@storybook/addon-links": "^6.4.0-alpha.24",
"@storybook/addon-storysource": "^6.4.0-alpha.24",
"@storybook/addon-viewport": "^6.4.0-alpha.24",
Expand Down

0 comments on commit 5b87482

Please sign in to comment.