-
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
base: main
Are you sure you want to change the base?
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.
const flatCompat = new FlatCompat(); | ||
|
||
module.exports = [ | ||
...fixupConfigRules(flatCompat.extends("plugin:@next/next/core-web-vitals")), |
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.
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.
@kilemensi I came across this issue and the only workaround I had was to use eslint compatibility utilities to fix up things.
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.
@@ -59,7 +59,7 @@ const Articles = React.forwardRef(function Articles(props, ref) { | |||
undefined, | |||
{ scroll: false, shallow: true }, | |||
); | |||
// eslint-disable-next-line react-hooks/exhaustive-deps | |||
/* eslint react-hooks/exhaustive-deps: "off" */ |
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.
- Why are we changing these? They seem to still be supported.
- Doesn't "off" disable them for the rest of the file instead of just the next line as the original intended?
@@ -7,7 +7,7 @@ | |||
"build": "next build", | |||
"start": "next start", | |||
"lint-check": "TIMING=1 next lint './'", | |||
"lint": "TIMING=1 next lint --fix './'", | |||
"lint": "TIMING=1 eslint --fix './'", |
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.
Does this go through the Next.js linting?
apiUrl: string; | ||
|
||
fingerprint?: string; | ||
|
||
timeout?: number; | ||
|
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.
Why so many empty lines?
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",
.// eslint-disable-next-line react-hooks/exhaustive-deps
occurrences have now been replaced with/* eslint react-hooks/exhaustive-deps: "off" */
Review of this PR should be around
*/**/eslint.config.js
andpackages/eslint-config-commons-ui
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Screenshots
Checklist: