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] Enable remaining lint rules and fix lots of bugs #2510

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Aug 20, 2024

Why

This is the real PR I wanted to get to: it uses lint to fix a lot of bugs where promises should have been awaited but weren't. This also fixes bugs where a promise was being accidentally used as a boolean rather than the awaited boolean value.

Closes ENG-13213.

How

Apply rules, fix manually.

Test Plan

yarn lint

@wschurman wschurman force-pushed the @wschurman/08-20-_chore_enable_remaining_lint_rules_and_fix_lots_of_bugs branch from 873fd9a to f8e5dc3 Compare August 20, 2024 18:32
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 47.61905% with 11 lines in your changes missing coverage. Please review.

Project coverage is 52.88%. Comparing base (9597ea2) to head (333ea14).
Report is 3 commits behind head on main.

Files Patch % Lines
packages/eas-cli/src/commands/update/list.ts 0.00% 3 Missing ⚠️
packages/eas-cli/src/commands/analytics.ts 0.00% 1 Missing ⚠️
...-cli/src/credentials/ios/IosCredentialsProvider.ts 0.00% 1 Missing ⚠️
...ntials/ios/actions/DistributionCertificateUtils.ts 0.00% 1 Missing ⚠️
...ials/ios/validators/validateProvisioningProfile.ts 0.00% 1 Missing ⚠️
...kages/eas-cli/src/credentials/manager/ManageIos.ts 0.00% 1 Missing ⚠️
packages/eas-cli/src/project/publish.ts 83.34% 1 Missing ⚠️
packages/eas-cli/src/run/ios/systemRequirements.ts 0.00% 0 Missing and 1 partial ⚠️
packages/eas-cli/src/user/expoSsoLauncher.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2510      +/-   ##
==========================================
- Coverage   52.95%   52.88%   -0.06%     
==========================================
  Files         544      544              
  Lines       20061    20093      +32     
  Branches     4098     4098              
==========================================
+ Hits        10621    10625       +4     
- Misses       8626     8654      +28     
  Partials      814      814              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wschurman wschurman force-pushed the @wschurman/08-20-_chore_apply_more_lint branch from 3be6be0 to b3ff913 Compare August 20, 2024 18:41
@wschurman wschurman force-pushed the @wschurman/08-20-_chore_enable_remaining_lint_rules_and_fix_lots_of_bugs branch from f8e5dc3 to 0bf09b5 Compare August 20, 2024 18:41
Copy link

github-actions bot commented Aug 20, 2024

Size Change: -289 B (0%)

Total Size: 51.1 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 51.1 MB -289 B (0%)

compressed-size-action

@wschurman wschurman marked this pull request as ready for review August 20, 2024 18:51
Copy link

linear bot commented Aug 20, 2024

Copy link
Contributor

@sjchmiela sjchmiela left a comment

Choose a reason for hiding this comment

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

lol

Copy link
Member

@szdziedzic szdziedzic left a comment

Choose a reason for hiding this comment

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

Thank you, for fixing these! This is a huge improvement 👏

@wschurman wschurman force-pushed the @wschurman/08-20-_chore_enable_remaining_lint_rules_and_fix_lots_of_bugs branch from 0bf09b5 to d997ab8 Compare August 21, 2024 16:08
Copy link
Member Author

wschurman commented Aug 21, 2024

Merge activity

  • Aug 21, 12:11 PM EDT: @wschurman started a stack merge that includes this pull request via Graphite.
  • Aug 21, 12:23 PM EDT: Graphite rebased this pull request as part of a merge.
  • Aug 21, 12:24 PM EDT: @wschurman merged this pull request with Graphite.

@wschurman wschurman changed the base branch from @wschurman/08-20-_chore_apply_more_lint to graphite-base/2510 August 21, 2024 16:19
@wschurman wschurman changed the base branch from graphite-base/2510 to main August 21, 2024 16:21
@wschurman wschurman force-pushed the @wschurman/08-20-_chore_enable_remaining_lint_rules_and_fix_lots_of_bugs branch from d997ab8 to 333ea14 Compare August 21, 2024 16:22
Copy link

✅ Thank you for adding the changelog entry!

@wschurman wschurman merged commit 8af8569 into main Aug 21, 2024
6 checks passed
@wschurman wschurman deleted the @wschurman/08-20-_chore_enable_remaining_lint_rules_and_fix_lots_of_bugs branch August 21, 2024 16:24
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