-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ft/upgrade next to 15 #1001
Ft/upgrade next to 15 #1001
Conversation
…nresolved imports for SVG files
…nder-result-naming-convention rule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏽
Still going through it but quick feedback on issues that kind of stood out to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…-hooks dependency
@kilemensi this seems to work for js apps if we put eslint configs at root but since ts apps configurations have some differences, we may have to retain them as is. |
There is a slight chance I've misread it @koechkevin so please read the docs again but my understanding is as follow:
Without the flag, With the flag on, the process is actually reversed. In a monorepo, the second approach sounds like the right approach to me. |
I just saw
fly by my screen @koechkevin. Are we changing the approach? |
@CodeForAfrica/tech ? |
Hi @koechkevin just early feedback tested running several apps noticed there is an issue on CivicSignal Research, its failing to resolve this custom component
I did a quick test by renaming the component to
I recall keeping this component with |
@koechkevin A few issues I have encountered.
|
Renamed to |
Great we can keep the custom components in
|
…pdate ESLint config paths for consistency
…mmons-ui ESLint setup
@koechkevin , to move things along, this is what I raised on Friday: Before this upgrade, there were 2 eslint configs in eslint-config-commons-ui:
Each package/app chose which of the above config to use and import it via package/app-level Moving to eslint 9, my questions are:
|
@kilemensi to answer your questions,
|
Some packages such as |
@kilemensi |
Most likely @koechkevin; see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, nothing major but I've just noticed the warning (when I run the lint command) 👇
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
Shouldn't we explicitly set the react version ? 🤔
…t settings, but the "react" package is not installed.
I take @CodeForAfrica/tech are happy with this PR @koechkevin ? If yes, lets merge it. Any outstanding issue, will be fix in a separate PR. |
Description
This PR upgrades the Next.js framework from the current version to v15.0.3 to leverage on the latest features, performance improvements, and bug fixes introduced in this release.
Key Changes
.eslintignore
and.eslintrc
since with flatConfigs all can be defined in eslint.config.js.You may notice many changed files in component files, but this is due to a change in how to disable a rule in a file with flat configs.
// eslint-disable-next-line testing-library/render-result-naming-convention
inside the test file since this disable command has been specified in common eslint config"testing-library/render-result-naming-convention": "off",
.Review of this PR should be around
*/**/eslint.config.js
andpackages/eslint-config-commons-ui
.Find a write-up of how these configs work here
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Screenshots
Checklist: