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

Merged

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 decrease total bundle size by 1.07kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.63MB 343 bytes (-0.01%) ⬇️
gazebo-staging-system 5.58MB 725 bytes (-0.01%) ⬇️

Copy link

codecov bot commented Nov 18, 2024

Bundle Report

Changes will decrease total bundle size by 1.07kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.58MB 725 bytes (-0.01%) ⬇️
gazebo-production-system-esm 5.63MB 343 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 (aa0c312) to head (125652e).
Report is 1 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.92%   98.92%   -0.01%     
==========================================
  Files         808      808              
  Lines       14411    14407       -4     
  Branches     4098     4091       -7     
==========================================
- Hits        14256    14252       -4     
  Misses        148      148              
  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% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (ø)
Services 99.33% <ø> (-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 aa0c312...125652e. 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.92%   98.92%   -0.01%     
==========================================
  Files         808      808              
  Lines       14411    14407       -4     
  Branches     4091     4091              
==========================================
- Hits        14256    14252       -4     
  Misses        148      148              
  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% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (ø)
Services 99.33% <ø> (-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 aa0c312...125652e. 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 Expired Expired
125652e Wed, 27 Nov 2024 12:28:51 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 (aa0c312) to head (125652e).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3508      +/-   ##
==========================================
- Coverage   98.92%   98.92%   -0.01%     
==========================================
  Files         808      808              
  Lines       14411    14407       -4     
  Branches     4098     4091       -7     
==========================================
- Hits        14256    14252       -4     
  Misses        148      148              
  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% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (ø)
Services 99.33% <ø> (-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 aa0c312...125652e. Read the comment docs.

@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 98.92%. Comparing base (aa0c312) to head (125652e).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3508      +/-   ##
==========================================
- Coverage   98.92%   98.92%   -0.01%     
==========================================
  Files         808      808              
  Lines       14411    14407       -4     
  Branches     4091     4091              
==========================================
- Hits        14256    14252       -4     
  Misses        148      148              
  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% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.59% <100.00%> (ø)
Services 99.33% <ø> (-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 aa0c312...125652e. Read the comment docs.

@nicholas-codecov nicholas-codecov force-pushed the gh-eng-2124-audit-and-update-lint-rules-for-gazebo branch from 614ae25 to 125652e Compare November 27, 2024 12:22
@nicholas-codecov nicholas-codecov added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 8162361 Nov 27, 2024
61 of 62 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-2124-audit-and-update-lint-rules-for-gazebo branch November 27, 2024 13:35
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