Skip to content

Fix all ESLint errors across JavaScript codebase#2470

Merged
Crabcyborg merged 12 commits into
feature/admin-js-webpack-refactorfrom
fix/eslint
Aug 25, 2025
Merged

Fix all ESLint errors across JavaScript codebase#2470
Crabcyborg merged 12 commits into
feature/admin-js-webpack-refactorfrom
fix/eslint

Conversation

@shervElmi
Copy link
Copy Markdown
Contributor

@shervElmi shervElmi commented Aug 22, 2025

This PR resolves all remaining ESLint errors in our JavaScript files, bringing the codebase into full compliance with our linting standards.

Note

All functionality remains unchanged, and this is purely a code quality improvement that brings us into full ESLint compliance.

Base PR

#2464

- Convert var to let/const to fix no-var violations
- Remove unused variables to fix no-unused-vars errors
- Standardize JSDoc @returns to @return format
- Add ESLint disable comments for required jQuery usage
- Clean up formatting and code organization issues
- Add 'run analysis' label condition to jscs.yml workflow
- Follow same pattern as other workflows (cypress, phpunit, qadeploy)
- ESLint now runs on push to master or when PR has 'run analysis' label
- Enables manual control of when ESLint analysis runs on PRs
@shervElmi shervElmi requested a review from Crabcyborg August 22, 2025 15:38
@shervElmi shervElmi marked this pull request as ready for review August 22, 2025 15:38
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feature/admin-js-webpack-refactor@192b46e). Learn more about missing BASE report.

Additional details and impacted files
@@                         Coverage Diff                          @@
##             feature/admin-js-webpack-refactor    #2470   +/-   ##
====================================================================
  Coverage                                     ?   27.34%           
  Complexity                                   ?     8708           
====================================================================
  Files                                        ?      140           
  Lines                                        ?    28743           
  Branches                                     ?        0           
====================================================================
  Hits                                         ?     7860           
  Misses                                       ?    20883           
  Partials                                     ?        0           

☔ 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.

@shervElmi
Copy link
Copy Markdown
Contributor Author

@Crabcyborg, I also found some ways to prevent installing packages with every PR by caching them, which will help actions run faster.

I’ll work on this when I have some free time, just wanted to let you know.

Comment thread js/admin/style.js
Copy link
Copy Markdown
Contributor

@Crabcyborg Crabcyborg left a comment

Choose a reason for hiding this comment

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

Thanks @shervElmi!

I think these changes all looks good. I haven't tried testing yet though.

@Crabcyborg Crabcyborg merged commit 280828c into feature/admin-js-webpack-refactor Aug 25, 2025
11 of 13 checks passed
@Crabcyborg Crabcyborg deleted the fix/eslint branch August 25, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants