Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): Update Typescript to 4.0+ #1214

Merged
1 commit merged into from
May 10, 2021
Merged

Conversation

ghost
Copy link

@ghost ghost commented May 6, 2021

Summary

Updates the React-USWDS Typescript version to 4.0 (actually 4.2.4, which is the most recent TS version, and also what USWDS is using in their latest release). This required updating the @typescript-eslint plugin and parser, which required changing some linter exception comments in a story file to solve an eslint error that arose with the plugin version change.

The updated plugin also threw quite a few warnings around wanting argTypes parameters in story files to be typed, so I went ahead and added those, and fixed a few other minor type-checking complaints that existed elsewhere to get back to a warning-free baseline.

As we're updating a dependency major version, this is a BREAKING CHANGE.

Related Issues or PRs

Closes #522.

How To Test

  • yarn test and yarn lint, and make sure everything comes back clean.
  • In storybook, find a story that makes use of control values (the Table component has a few) and ensure that toggling control values updates the presentation of the component in the story canvas.

@ghost ghost added the type: breaking This introduces breaking changes and will require a major version increase label May 6, 2021
@trussworks-infra-zz trussworks-infra-zz temporarily deployed to storybook May 6, 2021 17:47 Inactive
@ghost ghost linked an issue May 6, 2021 that may be closed by this pull request
Copy link
Contributor

@brandonlenz brandonlenz left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for doing this, and for the clear testing procedure. Looks good to me as well!

@ghost ghost merged commit de6bef3 into V2 May 10, 2021
@ghost ghost deleted the kh-upgrade-typescript-522 branch May 10, 2021 19:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: breaking This introduces breaking changes and will require a major version increase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Typescript 4.0+
3 participants