Skip to content

Updating to typescript 3.2 #1388

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

Merged
merged 1 commit into from
May 3, 2019
Merged

Updating to typescript 3.2 #1388

merged 1 commit into from
May 3, 2019

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Apr 30, 2019

WHY are these changes introduced?

Consumers can't move past typescript 3.1.6 thanks to us erroring in those versions

WHAT is this pull request doing?

Updating to typescript 3.2.4

Shopify/quilt#602 shows how quilt and react-compose were able to compile in TS 3.2, hopefully similar fixes should do the job in our HoCs but my TS-fu isn't up to the task

Thanks to conflicting version dependencies with our linting tools we can't go all the way up to 3.4:

The last release of typescript-eslint-parser is 22.0.0 which only
supports up to TS 3.2.x. We're stuck on this because
eslint-plugin-shopify still uses typescript-eslint-parser and has not
yet moved onto its replacement package @typescript-eslint/parser - which
supports TS 3.2.x and above.

Somehow among all this we now get false positives for violations of the
import/named rule. It's fine to disable that as TS will shout at us if
we reference an unknown import anyway.

Let's stick with 3.2.x for the moment, and then when eslint-plugin-shopify updates to use typescript-eslint-parser we can update beyond that

How to 🎩

yarn run sk type-check

@BPScott BPScott temporarily deployed to polaris-react-pr-1388 April 30, 2019 18:02 Inactive
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 April 30, 2019 22:14 Inactive
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 10:26 Inactive
@BPScott BPScott had a problem deploying to polaris-react-pr-1388 May 1, 2019 10:46 Failure
@BPScott BPScott force-pushed the typescript-update branch from c6473bb to 34ced44 Compare May 1, 2019 10:48
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 10:48 Inactive
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 11:20 Inactive
@BPScott BPScott changed the title [WIP] updating to latest typescript [WIP] updating to typescript 3.2 May 1, 2019
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 13:52 Inactive
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 16:14 Inactive
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 16:30 Inactive
@BPScott BPScott force-pushed the typescript-update branch from 23855b2 to 7f0d103 Compare May 1, 2019 17:14
@BPScott BPScott temporarily deployed to polaris-react-pr-1388 May 1, 2019 17:14 Inactive
@BPScott BPScott changed the title [WIP] updating to typescript 3.2 Updating to typescript 3.2 May 1, 2019
@BPScott BPScott requested a review from AndrewMusgrave May 1, 2019 17:15
@BPScott
Copy link
Member Author

BPScott commented May 1, 2019

This is rebased atop latest master and is now ready for review

@BPScott BPScott had a problem deploying to polaris-react-pr-1388 May 2, 2019 10:31 Failure
Copy link
Member

@AndrewMusgrave AndrewMusgrave left a comment

Choose a reason for hiding this comment

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

Awesome stuff 🎉 glad we can finally update TS 😄

The last release of typescript-eslint-parser is 22.0.0 which only
supports up to TS 3.2.x. We're stuck on this because
eslint-plugin-shopify still uses typescript-eslint-parser and has not
yet moved onto its replacement package @typescript-eslint/parser - which
supports TS 3.2.x and above.

Somehow among all this we now get false positives for violations of the
import/named rule. It's fine to disable that as TS will shout at us if
we reference an unknown import anyway.
@BPScott BPScott force-pushed the typescript-update branch from 0187e7d to 10b2800 Compare May 3, 2019 09:21
@BPScott BPScott merged commit 68e55bb into master May 3, 2019
@BPScott BPScott deleted the typescript-update branch May 3, 2019 11:42
@chloerice chloerice temporarily deployed to production May 8, 2019 19:57 Inactive
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