Skip to content

USWDS: Remove unused storybook dependencies#4671

Merged
thisisdano merged 1 commit into
developfrom
al-storybook-dependencies
May 6, 2022
Merged

USWDS: Remove unused storybook dependencies#4671
thisisdano merged 1 commit into
developfrom
al-storybook-dependencies

Conversation

@amyleadem

@amyleadem amyleadem commented May 6, 2022

Copy link
Copy Markdown
Contributor

Description

Removed our unused Storybook addon dependencies.

Closes Issue #4670.

Also will resolve this Dependabot alert.

Additional information

Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

Comment thread package.json
"@babel/preset-env": "7.16.7",
"@chanzuckerberg/axe-storybook-testing": "5.0.0",
"@storybook/addon-a11y": "6.4.18",
"@storybook/addon-actions": "6.4.18",

@amyleadem amyleadem May 6, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actions is part of essentials and is installed in all new Storybooks by default. It is not loaded in main.js

Comment thread package.json
"@storybook/addon-actions": "6.4.18",
"@storybook/addon-essentials": "6.4.18",
"@storybook/addon-links": "6.4.18",
"@storybook/addon-postcss": "2.0.0",

@amyleadem amyleadem May 6, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not loaded in main.js

Comment thread package.json
"sass-true": "6.0.1",
"sinon": "12.0.1",
"snyk": "1.817.0",
"storybook-addon-html-document": "1.0.1",

@amyleadem amyleadem May 6, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not loaded in main.js. Storybook-addon-html-document was also flagged in this high severity Dependabot alert

@amyleadem amyleadem marked this pull request as ready for review May 6, 2022 16:11
@amyleadem amyleadem requested a review from mejiaj May 6, 2022 16:12
@thisisdano thisisdano merged commit 5969f61 into develop May 6, 2022
@thisisdano thisisdano deleted the al-storybook-dependencies branch May 6, 2022 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants