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

chore: update typescript to 5.3.3 #14407

Merged
merged 6 commits into from
Feb 1, 2024
Merged

chore: update typescript to 5.3.3 #14407

merged 6 commits into from
Feb 1, 2024

Conversation

brenthagen
Copy link
Contributor

@brenthagen brenthagen commented Feb 1, 2024

Overview

updates typescript to latest. updates eslint to latest. fixes some typescript errors, ignores some typescript errors. suppresses new eslint errors. enables json linting, fixes json linting errors.

Test Plan

CI passing, builds building

Changelog

  • Updates typescript to 5.3.3

Review requests

check local builds

Risk assessment

medium-high

updates typescript to latest. updates eslint to latest. fixes some typescript errors, ignores some
typescript errors. suppresses new eslint errors.
@brenthagen brenthagen requested a review from a team February 1, 2024 16:12
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (1e10a79) 68.25% compared to head (298f87f) 68.21%.
Report is 1 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #14407      +/-   ##
==========================================
- Coverage   68.25%   68.21%   -0.05%     
==========================================
  Files        1629     2520     +891     
  Lines       54889    71912   +17023     
  Branches     4125     9188    +5063     
==========================================
+ Hits        37465    49053   +11588     
- Misses      16735    20686    +3951     
- Partials      689     2173    +1484     
Flag Coverage Δ
app 64.80% <40.00%> (+30.05%) ⬆️
components 49.38% <100.00%> (ø)
labware-library 41.11% <25.00%> (+0.01%) ⬆️
protocol-designer 38.00% <0.00%> (-0.02%) ⬇️
react-api-client 66.16% <ø> (ø)
shared-data 75.25% <ø> (ø)
step-generation 86.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
components/src/primitives/Btn.tsx 100.00% <100.00%> (ø)
components/src/primitives/style-props.ts 93.75% <100.00%> (ø)
...mponents/src/testing/utils/renderWithProviders.tsx 100.00% <100.00%> (ø)
.../labware-creator/components/utils/wrapInFormik.tsx 100.00% <ø> (ø)
protocol-designer/src/navigation/reducers/index.ts 50.00% <ø> (ø)
protocol-designer/src/timelineMiddleware/worker.ts 0.00% <ø> (ø)
shared-data/js/helpers/parseProtocolData.ts 64.86% <ø> (ø)
...RobotStateAndWarnings/dispenseUpdateLiquidState.ts 93.33% <ø> (ø)
app-shell/src/protocol-storage/index.ts 38.15% <66.66%> (+0.82%) ⬆️
...library/src/labware-creator/formLevelValidation.ts 71.18% <50.00%> (+0.49%) ⬆️
... and 5 more

... and 891 files with indirect coverage changes

@@ -5,6 +5,7 @@
**/build/**
**/venv/**
.opentrons_config
**/tsconfig*.json
Copy link
Contributor Author

Choose a reason for hiding this comment

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

typescript-eslint/parser seems unable to parse tsconfig json files, so we're ignoring them

'standard-with-typescript',
'plugin:react/recommended',
'prettier',
'plugin:json/recommended',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

turns out, without extending these rules we weren't actually linting json files in edge. so now we're actually linting json

Copy link
Contributor Author

Choose a reason for hiding this comment

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

downside: linting json via typescript-eslint/parser takes about an extra minute to run

Copy link
Member

Choose a reason for hiding this comment

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

lol fyi @sfoster1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brenthagen brenthagen marked this pull request as ready for review February 1, 2024 20:41
@brenthagen brenthagen requested review from a team as code owners February 1, 2024 20:41
@brenthagen brenthagen requested review from TamarZanzouri and removed request for a team and TamarZanzouri February 1, 2024 20:41
Copy link
Member

@shlokamin shlokamin left a comment

Choose a reason for hiding this comment

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

lgtm. smoke tested PD and stuff still seems to work

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

woo, thank you Brent! I mainly tested PD and LL. Looks good to me!

@@ -13,7 +13,7 @@ const page: Reducer<Page, any> = handleActions(
},
'file-splash'
)
// @ts-expect-error(sa, 2021-6-21): TS thinks this will only return false, even though TOGGLE_NEW_PROTOCOL_MODAL might yield true
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!!

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

schweet

@brenthagen brenthagen merged commit 10be941 into edge Feb 1, 2024
65 of 66 checks passed
@brenthagen brenthagen deleted the typescript_5.3.3 branch February 1, 2024 21:36
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.

4 participants