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 more eslint rules to match other expo repos #2508

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Aug 20, 2024

Why

This enables the "return await" lint rule, which is useful for catching bugs that surround an unawaited promise with a try/catch.

How

Enable the rule, manually audit and fix the lint issues.

Test Plan

yarn lint

Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 47.45763% with 31 lines in your changes missing coverage. Please review.

Project coverage is 52.95%. Comparing base (9597ea2) to head (e3e1b9e).
Report is 1 commits behind head on main.

Files Patch % Lines
packages/eas-cli/src/submit/ArchiveSource.ts 66.67% 5 Missing ⚠️
...ntials/ios/actions/DistributionCertificateUtils.ts 0.00% 4 Missing ⚠️
...s/eas-cli/src/credentials/ios/appstore/keychain.ts 0.00% 4 Missing ⚠️
...as-cli/src/credentials/ios/actions/PushKeyUtils.ts 0.00% 2 Missing ⚠️
...src/credentials/ios/appstore/resolveCredentials.ts 0.00% 2 Missing ⚠️
packages/eas-cli/src/utils/download.ts 0.00% 2 Missing ⚠️
packages/eas-cli/src/build/ios/build.ts 0.00% 1 Missing ⚠️
...ntials/ios/actions/SetUpDistributionCertificate.ts 0.00% 1 Missing ⚠️
...s-cli/src/credentials/ios/appstore/authenticate.ts 0.00% 1 Missing ⚠️
...s/eas-cli/src/credentials/ios/appstore/bundleId.ts 0.00% 1 Missing ⚠️
... and 8 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2508   +/-   ##
=======================================
  Coverage   52.95%   52.95%           
=======================================
  Files         544      544           
  Lines       20061    20061           
  Branches     4098     4098           
=======================================
  Hits        10621    10621           
  Misses       8626     8626           
  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_enable_more_lint_rules_to_align_with_other_expo_codebases branch from 753acaa to b340384 Compare August 20, 2024 18:41
@wschurman wschurman force-pushed the @wschurman/08-20-_chore_enable_more_eslint_rules_to_match_other_expo_repos branch from 413b5ce to 8e6d802 Compare August 20, 2024 18:41
Copy link

github-actions bot commented Aug 20, 2024

Size Change: -1.81 kB (0%)

Total Size: 51.1 MB

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

compressed-size-action

@wschurman wschurman marked this pull request as ready for review August 20, 2024 18:51
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:17 PM EDT: Graphite rebased this pull request as part of a merge.
  • Aug 21, 12:18 PM EDT: @wschurman merged this pull request with Graphite.

@wschurman wschurman changed the base branch from @wschurman/08-20-_chore_enable_more_lint_rules_to_align_with_other_expo_codebases to graphite-base/2508 August 21, 2024 16:12
@wschurman wschurman changed the base branch from graphite-base/2508 to main August 21, 2024 16:14
@wschurman wschurman force-pushed the @wschurman/08-20-_chore_enable_more_eslint_rules_to_match_other_expo_repos branch from 8e6d802 to e3e1b9e Compare August 21, 2024 16:16
Copy link

❌ It looks like a changelog entry is missing for this PR. You have two options: you can add it manually, or you can use the changelog bot to do it for you.
🤖 To use the bot, simply comment on this PR with the command /changelog-entry [breaking-change|new-feature|bug-fix|chore] [message].
⏩ If this PR doesn't require a changelog entry, such as if it's an internal change that doesn't affect the user experience, you can add the "no changelog" label to the PR.

@wschurman wschurman merged commit 2c8f9a6 into main Aug 21, 2024
5 of 6 checks passed
@wschurman wschurman deleted the @wschurman/08-20-_chore_enable_more_eslint_rules_to_match_other_expo_repos branch August 21, 2024 16:18
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.

2 participants