Skip to content

Comments

ROX-33316: Fix more prerequisites to upgrade ESLint 10.0.0#19167

Open
pedrottimark wants to merge 2 commits intomasterfrom
ROX-33316-more-prerequisites-eslint-10
Open

ROX-33316: Fix more prerequisites to upgrade ESLint 10.0.0#19167
pedrottimark wants to merge 2 commits intomasterfrom
ROX-33316-more-prerequisites-eslint-10

Conversation

@pedrottimark
Copy link
Contributor

@pedrottimark pedrottimark commented Feb 24, 2026

Description

Problems

  1. Error: Cannot find module '@eslint/js'

    Add explicit "@eslint/js": "^9.39.3" to devDependencies because it will not be in dependencies of eslint package in version 10.

  2. Could not resolve dependency for packages that have ^9 as latest supported version.

    Because eslint-plugin-eslint-comments is unmaintained, replace with maintained fork in eslint-community repository, which might be updated eventually.

    TypeError: Error while loading rule 'eslint-comments/no-aggregating-enable': context.getSourceCode is not a function

    Here are the other packages that block the upgrade:

    • eslint-plugin-import
    • eslint-plugin-jest-dom
    • eslint-plugin-react
    • eslint-plugin-react-hooks

Bonus

  1. Update ESLint-related dependencies as much as possible.

  2. In a few non-React files, either remove need for disable comments or move file-scope /* eslint-enable no-console */ to precede relevant code block and add /* eslint-enable no-console */ to follow.

    This supports potential use of 'eslint-comments/disable-enable-pair' lint rule in the future.

User-facing documentation

  • CHANGELOG.md update is not needed
  • documentation PR is not needed

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

  1. npm run tsc in ui/apps/platform folder.
  2. npm run lint:fast-dev in ui/apps/platform folder.

@pedrottimark pedrottimark requested review from a team as code owners February 24, 2026 22:11
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at e36be9f.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-170-ge36be9f4cd.

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.54%. Comparing base (6645070) to head (e36be9f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19167      +/-   ##
==========================================
- Coverage   49.54%   49.54%   -0.01%     
==========================================
  Files        2674     2674              
  Lines      201755   201755              
==========================================
- Hits        99958    99950       -8     
- Misses      94338    94344       +6     
- Partials     7459     7461       +2     
Flag Coverage Δ
go-unit-tests 49.54% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants