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

build: Audit and update lint rules for Gazebo #3508

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

nicholas-codecov
Copy link
Contributor

@nicholas-codecov nicholas-codecov commented Nov 18, 2024

Description

This PR removes react-scripts from Gazebo, while updating the local eslint config to match that of react-scripts so that we're able to fully remove it and it's extra deps. This PR also updates some of the already used eslint packages while I was at it.

Ticket: codecov/engineering-team#2124

Notable Changes

  • Add/Update/Remove lint related deps
  • Copy lint rules over from react-scripts
    • Removed deprecated
    • Updated rules for unused vars - you can use _ (underscore) now to ignore unused vars
      • Update couple of warnings for unused vars
  • Remove Storybook create-react-app preset (since we removed react-scripts this is no longer needed)

@codecov-staging
Copy link

codecov-staging bot commented Nov 18, 2024

Bundle Report

Changes will increase total bundle size by 826 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.61MB 552 bytes (0.01%) ⬆️
gazebo-staging-system 5.56MB 274 bytes (0.0%) ⬆️

Copy link

codecov bot commented Nov 18, 2024

Bundle Report

Changes will increase total bundle size by 826 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.56MB 274 bytes (0.0%) ⬆️
gazebo-production-system-esm 5.61MB 552 bytes (0.01%) ⬆️

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.92%. Comparing base (3133f8c) to head (614ae25).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3508      +/-   ##
==========================================
- Coverage   98.93%   98.92%   -0.01%     
==========================================
  Files         806      806              
  Lines       14369    14372       +3     
  Branches     4077     4086       +9     
==========================================
+ Hits        14216    14218       +2     
- Misses        146      147       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <ø> (ø)
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <ø> (ø)
...te/ComponentsMultiSelect/ComponentsMultiSelect.tsx 100.00% <ø> (ø)
...rc/pages/TermsOfService/hooks/useTermsOfService.ts 100.00% <100.00%> (ø)
.../services/charts/useBranchCoverageMeasurements.tsx 100.00% <ø> (ø)
src/services/commit/useCommitTeam.tsx 100.00% <ø> (ø)
src/services/pull/usePull.tsx 100.00% <ø> (ø)
src/services/pull/usePullTeam.tsx 100.00% <ø> (ø)
src/services/user/useInternalUser.ts 92.30% <ø> (ø)

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (-0.02%) ⬇️
Services 99.36% <ø> (-0.01%) ⬇️
Shared 99.33% <ø> (ø)
UI 99.21% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3133f8c...614ae25. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3508      +/-   ##
==========================================
- Coverage   98.93%   98.92%   -0.01%     
==========================================
  Files         806      806              
  Lines       14369    14372       +3     
  Branches     4077     4079       +2     
==========================================
+ Hits        14216    14218       +2     
- Misses        146      147       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <ø> (ø)
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <ø> (ø)
...te/ComponentsMultiSelect/ComponentsMultiSelect.tsx 100.00% <ø> (ø)
...rc/pages/TermsOfService/hooks/useTermsOfService.ts 100.00% <100.00%> (ø)
.../services/charts/useBranchCoverageMeasurements.tsx 100.00% <ø> (ø)
src/services/commit/useCommitTeam.tsx 100.00% <ø> (ø)
src/services/pull/usePull.tsx 100.00% <ø> (ø)
src/services/pull/usePullTeam.tsx 100.00% <ø> (ø)
src/services/user/useInternalUser.ts 92.30% <ø> (ø)

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (-0.02%) ⬇️
Services 99.36% <ø> (-0.01%) ⬇️
Shared 99.33% <ø> (ø)
UI 99.21% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3133f8c...614ae25. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Nov 18, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
72eb6f6 Mon, 18 Nov 2024 11:40:08 GMT Expired Expired
cc027fc Mon, 18 Nov 2024 11:56:56 GMT Expired Expired
9130e2c Mon, 18 Nov 2024 16:02:16 GMT Expired Expired
4c9f62b Tue, 19 Nov 2024 11:39:14 GMT Expired Expired
614ae25 Thu, 21 Nov 2024 11:39:18 GMT Cloud Enterprise

@codecov-qa
Copy link

codecov-qa bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.92%. Comparing base (3133f8c) to head (614ae25).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3508      +/-   ##
==========================================
- Coverage   98.93%   98.92%   -0.01%     
==========================================
  Files         806      806              
  Lines       14369    14372       +3     
  Branches     4077     4086       +9     
==========================================
+ Hits        14216    14218       +2     
- Misses        146      147       +1     
  Partials        7        7              
Files with missing lines Coverage Δ
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <ø> (ø)
...e/routes/ComponentsSelector/ComponentsSelector.tsx 100.00% <ø> (ø)
...te/ComponentsMultiSelect/ComponentsMultiSelect.tsx 100.00% <ø> (ø)
...rc/pages/TermsOfService/hooks/useTermsOfService.ts 100.00% <100.00%> (ø)
.../services/charts/useBranchCoverageMeasurements.tsx 100.00% <ø> (ø)
src/services/commit/useCommitTeam.tsx 100.00% <ø> (ø)
src/services/pull/usePull.tsx 100.00% <ø> (ø)
src/services/pull/usePullTeam.tsx 100.00% <ø> (ø)
src/services/user/useInternalUser.ts 92.30% <ø> (ø)

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (-0.02%) ⬇️
Services 99.36% <ø> (-0.01%) ⬇️
Shared 99.33% <ø> (ø)
UI 99.21% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3133f8c...614ae25. Read the comment docs.


🚨 Try these New Features:

@nicholas-codecov nicholas-codecov marked this pull request as ready for review November 18, 2024 11:50
Copy link

codecov-public-qa bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.20%. Comparing base (3133f8c) to head (cc027fc).

✅ All tests successful. No failed tests found.

❗ There is a different number of reports uploaded between BASE (3133f8c) and HEAD (cc027fc). Click for more details.

HEAD has 8 uploads less than BASE
Flag BASE (3133f8c) HEAD (cc027fc)
18 10

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #3508       +/-   ##
===========================================
- Coverage   98.93%   86.20%   -12.73%     
===========================================
  Files         806      806               
  Lines       14369    14369               
  Branches     4084     4077        -7     
===========================================
- Hits        14216    12387     -1829     
- Misses        146     1740     +1594     
- Partials        7      242      +235     

see 97 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 76.08% <ø> (-22.52%) ⬇️
Services 99.06% <ø> (-0.31%) ⬇️
Shared 98.60% <ø> (-0.74%) ⬇️
UI 99.14% <ø> (-0.08%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3133f8c...cc027fc. Read the comment docs.

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