Skip to content

NXT-10859: Fix lint errors for latest Enact CLI (ESLint 10) - #269

Merged
daniel-stoian-lgp merged 2 commits into
developfrom
feature/NXT-10859
Nov 9, 2026
Merged

daniel-stoian-lgp merged 2 commits into
developfrom
feature/NXT-10859

Conversation

@hong6316

@hong6316 hong6316 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • I have run automated testing and it is passed
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

The latest Enact CLI (develop) uses eslint-config-enact on ESLint 10, which changed several rules and caused the samples lint stage to fail across multiple sample apps.

Resolution

Updated the sample sources to comply with the ESLint 10 rule set used by the latest Enact CLI:

  • Replaced the removed react/jsx-no-bind rule with enact/jsx-no-bind in eslint-disable directives
  • Dropped react/no-unescaped-entities from disable directives (rule no longer active)
  • Removed useless assignments flagged by the new no-useless-assignment rule (newDataOrder in virtualgridlist-api stores, lastPath in dynamic-panel FileBrowsers)
  • Preserved the caught error via { cause } to satisfy preserve-caught-error in feature-custom-skin-generator
  • Suppressed react-hooks/set-state-in-effect on the intentional sample effect in virtualgridlist-incremental-load

Additional Considerations

Verified locally with Node 24 and @enact/cli linked from develop: npm run lint reports "All clean" and sandstone/all-samples packs successfully.

Links

NXT-10859

Comments

Enact-DCO-1.0-Signed-off-by: Taeyoung Hong (taeyoung.hong@lge.com)

hong6316 and others added 2 commits November 2, 2026 16:02
The latest Enact CLI (develop) uses eslint-config-enact on ESLint 10,
which changed several rules and caused the samples lint stage to fail:

- Replace removed 'react/jsx-no-bind' with 'enact/jsx-no-bind' in all
  eslint-disable directives
- Drop 'react/no-unescaped-entities' from disable directives (rule no
  longer active)
- Remove useless assignments flagged by new 'no-useless-assignment'
  rule (newDataOrder in virtualgridlist-api stores, lastPath in
  dynamic-panel FileBrowsers)
- Preserve caught error via { cause } to satisfy 'preserve-caught-error'
  in feature-custom-skin-generator
- Suppress 'react-hooks/set-state-in-effect' on intentional sample
  effect in virtualgridlist-incremental-load

Verified locally with Node 24 and @enact/cli linked from develop:
'npm run lint' is All clean and sandstone/all-samples packs successfully.

@daniel-stoian-lgp daniel-stoian-lgp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@daniel-stoian-lgp
daniel-stoian-lgp merged commit a42ab70 into develop Nov 9, 2026
5 checks passed
@daniel-stoian-lgp
daniel-stoian-lgp deleted the feature/NXT-10859 branch November 9, 2026 14:29
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.

2 participants