Skip to content

NXT-10859: Updated eslint to version 10 - #402

Merged
hong6316 merged 22 commits into
developfrom
feature/NXT-10859
Nov 2, 2026
Merged

hong6316 merged 22 commits into
developfrom
feature/NXT-10859

Conversation

@daniel-stoian-lgp

@daniel-stoian-lgp daniel-stoian-lgp commented Oct 1, 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

Updated the CLI tooling to ESLint 10 and Babel 8.

Resolution

  • Updated eslint to ^10.11.0. enact lint and the dev-server lint (eslint-webpack-plugin) now run ESLint 10.
  • Updated @babel/plugin-transform-modules-commonjs to ^8.0.1.
  • Added @babel/core@^8.0.1 as a peer dependency, matching babel-preset-enact, which now targets Babel 8.
  • Replaced eslint-plugin-import with eslint-plugin-import-x in dev dependencies, because eslint-plugin-import does not support ESLint 10.
  • config/eslintWebpackPluginConfig.js: removed the react/jsx-uses-react and react/react-in-jsx-scope rules that were added when the classic JSX transform is used (DISABLE_NEW_JSX_TRANSFORM=true). babel-preset-enact no longer supports the classic transform, and eslint-config-enact no longer registers a react plugin (rules now use their ESLint React names), so with this variable set the build lint failed with could not find plugin "react".
  • Solved newly surfaced ESLint warnings/errors:

Additional Considerations

  • Breaking: requires ESLint 10 and Babel 8 (@babel/core 8 peer dependency). DISABLE_NEW_JSX_TRANSFORM no longer has any effect.

Links

NXT-10859

Comments

Enact-DCO-1.0-Signed-off-by: Daniel Stoian (daniel.stoian@lgepartner.com)

@hong6316
hong6316 merged commit bcb22fb into develop Nov 2, 2026
0 of 2 checks passed
@hong6316
hong6316 deleted the feature/NXT-10859 branch November 2, 2026 00:56
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.

3 participants