Skip to content

Conversation

@mahoneycm
Copy link
Contributor

Summary

Bump stylelint, @18f/identity-stylelint-config, and postcss to resolve semver vulnerability.

Breaking change

This is not a breaking change.

Related issue

Closes Dependabot alert #61

Related pull requests

Dependabot Security Update #5366

Preview link

Preview link:
USWDS →

Problem statement

Stylelint has vulnerability in semver dependency.

Updating this dependency alone causes conflicts with @18f/identity-stylelint-config which, when updated alone, causes a conflict with Postcss

Solution

Bump stylelint and relevant dependencies that are needed in order to prevent errors.

  • Bump stylelint 14.13.0 → 15.10.1
  • Bump @18f/identity-stylelint-config 1.0.0 → 2.0.0
  • Bump postcss 8.4.0 → 8.4.19

Dependency updates

Dependency name Previous version New version
[stylelint] [14.13.0] [15.10.1]
[@18f/identity-stylelint-confige] [ 1.0.0] [2.0.0]
[postcss] [8.4.0] [8.4.19]

Testing and Review

  1. Pull and checkout this branch
  2. Run npm install and confirm no installation errors
  3. Run npm run lint:sass
  4. Confirm it runs without error
  5. Confirm no files are changed as a result of linting
  6. Run npm run start
  7. Confirm no build errors
  8. Confirm no visual regression

Testing checklist

  • No install errors
  • Stylelint package dependency resolved
  • Linting runs as expected
  • No build errors
  • No visual regression

  • Run git pull origin [base branch] to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch is develop).
  • Run npm run prettier:sass to format any Sass updates.
  • Run npm test and confirm that all tests pass.

dependabot bot and others added 3 commits July 7, 2023 21:52
Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.13.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@14.13.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Contributor

@amyleadem amyleadem left a comment

Choose a reason for hiding this comment

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

Looks good!

  • Confirmed that there are no errors after running a clean npm install, npm run lint and npm run start
  • Confirmed that linting catches Sass code style errors
  • Styles appear to be intact

Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

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

LGTM, I tested for:

  • Install errors
  • Linting errors
  • Compilation errors
  • Visual regressions

@mejiaj mejiaj requested a review from thisisdano July 17, 2023 17:53
@amyleadem amyleadem modified the milestones: uswds 3.6.0, uswds 3.5.1 Jul 20, 2023
@thisisdano thisisdano merged commit 98e498f into develop Jul 28, 2023
@thisisdano thisisdano deleted the cm-bump-stylelint branch July 28, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants