config: add React 18 ESLint configuration - #20
Merged
zzacharo merged 3 commits intoApr 30, 2026
Conversation
mirekys
force-pushed
the
mirekys/eslint-phase0-react18
branch
5 times, most recently
from
April 22, 2026 18:23
fa9ee5a to
4fd117d
Compare
mirekys
force-pushed
the
mirekys/eslint-phase0-react18
branch
2 times, most recently
from
April 27, 2026 11:37
e0a9bff to
7849370
Compare
This was referenced Apr 28, 2026
zzacharo
approved these changes
Apr 30, 2026
zzacharo
left a comment
Member
There was a problem hiding this comment.
just a minor comment out of curiosity
mirekys
force-pushed
the
mirekys/eslint-phase0-react18
branch
from
April 30, 2026 08:02
712b516 to
eef1a34
Compare
zzacharo
approved these changes
Apr 30, 2026
* Adds new @inveniosoftware/invenio/react18 subpath export * Disables react-in-jsx-scope and jsx-uses-react rules for React 17+ automatic JSX transform * Adds no-restricted-imports for enzyme-adapter-react-16 migration * Adds no-restricted-imports for react-dom/test-utils to guide developers toward React 18 createRoot API * Explicitly configures react-hooks rules for React 18 compatibility
mirekys
force-pushed
the
mirekys/eslint-phase0-react18
branch
from
April 30, 2026 08:40
eef1a34 to
fd6aae9
Compare
mirekys
force-pushed
the
mirekys/eslint-phase0-react18
branch
from
April 30, 2026 12:13
5bba84e to
a609a75
Compare
zzacharo
approved these changes
Apr 30, 2026
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.
❤️ Thank you for your contribution!
Description
Implements Phase 0 of the React 18 migration RFC (inveniosoftware/rfcs#112).
Adds new
@inveniosoftware/invenio/react18subpath export with React 18 specific ESLint rules. Disables jsx-uses-react/react-in-jsx-scope for automatic JSX transform, restricts enzyme-adapter-react-16 and react-dom/test-utils imports, and enables explicit React Hooks rules.Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub's Terms of Service including that: