Repository navigation
NXT-10859: Adapted code for eslint 10 - #877
Open
daniel-stoian-lgp wants to merge 3 commits into
Open
daniel-stoian-lgp wants to merge 3 commits into
daniel-stoian-lgp wants to merge 3 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #877 +/- ##
===========================================
- Coverage 85.60% 85.58% -0.03%
===========================================
Files 118 118
Lines 4495 4488 -7
Branches 1226 1226
===========================================
- Hits 3848 3841 -7
Misses 503 503
Partials 144 144 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ion-andrusciac-lgp
approved these changes
Oct 6, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Issue Resolved / Feature Added
Fixed the lint errors and warnings reported by the ESLint 10 version of
eslint-config-enact.Resolution
react/no-access-state-in-setstateMediaPlayer/MediaPlayer.js:handleShuffleread the current media fromthis.statebefore callingsetStateand used it inside the updater, where it could be stale. The updater now readsplaylistandsourceIndexfrom itsstateargument, and the post-update logic moved to ahandleShuffleUpdatedmethod. Enabling shuffle only changesshuffle, so the same media is passed toshufflePlaylist.no-useless-assignment(new in ESLint 10's recommended rules)ContextualPopupDecorator/ContextualPopupDecorator.js(direction),TooltipDecorator/TooltipDecorator.js(tooltipDirection,arrowAnchor): removed initial values that are always overwritten.useScroll/useEvent.js:directionwas assigned in the arrow-key branch but never read. It is now aconstscoped to the page-key branch. Also removed the initial values ofscrollPossibleandy.samples/qa-virtualgridlist/src/store/index.js: removed deadnewDataOrder = state.dataOrder.no-use-before-define(ESLint 10 tracks JSX references)tests/ui/apps/VirtualList/VirtualList/VirtualList-View.js: movedStatefulSwitchItemaboverenderItem, which uses it. The class itself is unchanged.Unused disable directives
samples/sampler/src/ThemeEnvironment/ThemeEnvironment.js: removed tworeact/sort-prop-typesdisable comments. The rule has no replacement in the ESLint 10 config and no longer reports anything.Additional Considerations
Links
NXT-10859
Comments
Enact-DCO-1.0-Signed-off-by: Daniel Stoian (daniel.stoian@lgepartner.com)