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

Bump Typescript, @typescript-eslint, eslint-plugin-jest, eslint-plugin-testing-library and update tests and definitions #1193

Closed
wants to merge 4 commits into from

Conversation

cristiano-belloni
Copy link
Contributor

@cristiano-belloni cristiano-belloni commented Dec 14, 2021

This PR supersedes #1186 and #1166

This PR originated from a bug noticed by @cangarugula, where our Typescript svg definitions were not working. I discovered that the problem happens only with typescript@>4.5.0 <=4.5.2. Additionally, I discovered that the tilde definition of our typescript dependency conflicts with @typescript-eslint (yarn lint printing warnings), now that 4.5 is out.

There are two possible ways of fixing this: the easy one is constricting our typescript dependency to be strictly less than 4.5.0 and dealing with excluding the faulty versions later (https://github.com/jpmorganchase/modular/pull/1166/files). The longer one is to upgrade typescript, force it to be greater or equal to than 4.5.3 to exclude the faulty versions and update all the incompatible dependencies (this PR).

This PR updates:

  • @typescript-eslint to the latest version + fixes many any definitions that are not allowed any more
  • eslint-plugin-jest, eslint-plugin-testing-library to the latest version + fixes test expectations to align with it (eg toEqual becomes toBe etc)

This is breaking, since we're bumping modular-scripts to use a stricter linter that can break builds and tests.

@changeset-bot
Copy link

changeset-bot bot commented Dec 14, 2021

🦋 Changeset detected

Latest commit: 0ea7cb7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
create-modular-react-app Major
eslint-config-modular-app Major
modular-scripts Major
modular-site Patch
modular-views.macro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cristiano-belloni cristiano-belloni changed the title Upgrade Typescript Bump Typescript, @typescript-eslint and typescript definitions Dec 14, 2021
@coveralls
Copy link
Collaborator

coveralls commented Dec 14, 2021

Coverage Status

Coverage remained the same at 28.83% when pulling 0ea7cb7 on feature/upgrade-ts into 4b9cad7 on main.

@cristiano-belloni cristiano-belloni changed the title Bump Typescript, @typescript-eslint and typescript definitions Bump Typescript, @typescript-eslint, eslint-plugin-jest, eslint-plugin-testing-library and update tests and definitions Dec 15, 2021
@cristiano-belloni cristiano-belloni marked this pull request as ready for review December 15, 2021 16:55
@LukeSheard
Copy link
Contributor

@cristiano-belloni what's the resolution plan for this? Was this resolved with 4.6 release of TypeScript or should we close this?

@LukeSheard LukeSheard deleted the feature/upgrade-ts branch March 24, 2022 13:03
@cristiano-belloni cristiano-belloni mentioned this pull request Nov 21, 2022
6 tasks
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.

3 participants