Skip to content

Fix linting#6420

Merged
jarednorman merged 7 commits intosolidusio:mainfrom
SuperGoodSoft:fix-linting
Mar 2, 2026
Merged

Fix linting#6420
jarednorman merged 7 commits intosolidusio:mainfrom
SuperGoodSoft:fix-linting

Conversation

@AlistairNorman
Copy link
Contributor

Summary

Rubocop and eslint linting were both erroring. Running Rubocop and migrating to a new kind of config file fixed these issues.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@github-actions github-actions bot added changelog:solidus_api Changes to the solidus_api gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus_admin changelog:solidus_promotions Changes to the solidus_promotions gem labels Feb 26, 2026
@AlistairNorman AlistairNorman marked this pull request as ready for review February 26, 2026 19:29
@AlistairNorman AlistairNorman requested a review from a team as a code owner February 26, 2026 19:29
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.80%. Comparing base (6477ee8) to head (398c020).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6420      +/-   ##
==========================================
- Coverage   89.50%   88.80%   -0.71%     
==========================================
  Files         981      855     -126     
  Lines       20476    18275    -2201     
==========================================
- Hits        18327    16229    -2098     
+ Misses       2149     2046     -103     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AlistairNorman AlistairNorman marked this pull request as draft February 28, 2026 08:41
@AlistairNorman
Copy link
Contributor Author

Looks like there are still some issues. I'll sort this out next week.

AlistairNorman and others added 4 commits March 1, 2026 15:04
Co-Authored-By: Jared Norman <jared@super.gd>
Co-Authored-By: Chris Todorov <chris@super.gd>
Co-Authored-By: Senem Soy <senem@super.gd>
Co-Authored-By: Adam Mueller <adam@super.gd>
Co-Authored-By: Noah Silvera <noah@super.gd>
This is the new config format as of eslint 10.

Co-Authored-By: Adam Mueller <adam@super.gd>
Co-Authored-By: Jared Norman <jared@super.gd>
Co-Authored-By: Chris Todorov <chris@super.gd>
Co-Authored-By: Senem Soy <senem@super.gd>
Co-Authored-By: Noah Silvera <noah@super.gd>
This was failing linting. The purpose of the other parts of this case
statement was to change the credit amount but this part didn't do
anything.
@AlistairNorman AlistairNorman force-pushed the fix-linting branch 9 times, most recently from 31ad0f1 to 38e03d5 Compare March 2, 2026 17:56
remainingWidth isn't defined on this line. -= with undefined returns NaN
and doesn't do anything so this can be safely deleted. The behaviour of
this code seems to be correct so no other changes are needed from what I
can tell.
This was found by the linter. The value is overwritten in all cases so
this initial value is never used.
This is required for linting on CI. Otherwise it fails with an error
that it can't find eslint.
@github-actions github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label Mar 2, 2026
@AlistairNorman AlistairNorman marked this pull request as ready for review March 2, 2026 19:01
@jarednorman jarednorman requested a review from a team March 2, 2026 20:11
@jarednorman jarednorman merged commit e1dadca into solidusio:main Mar 2, 2026
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_admin changelog:solidus_api Changes to the solidus_api gem changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus_promotions Changes to the solidus_promotions gem

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants