-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade to Next.js 16.1.1 with React 19.2.3 and production-ready improvements #52
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
Merged
rezwana-karim
merged 7 commits into
dependabot/npm_and_yarn/npm_and_yarn-3d1d89fb29
from
copilot/sub-pr-44
Jan 17, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ff05216
Initial plan
Copilot 7026235
Upgrade to Next.js 16.1.1 with React 19.2.3
Copilot 14418fd
Update README with Next.js 16 and React 19 versions
Copilot 0f67e8f
Merge branch 'dependabot/npm_and_yarn/npm_and_yarn-3d1d89fb29' into c…
rezwana-karim dbc3898
Fix React 19 ESLint errors and update ESLint config for Next.js 16
Copilot a2284ff
Update all references from Next.js 15 to Next.js 16
Copilot a20417a
Clean up code formatting in theme-context.tsx
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,19 @@ | ||
| import { dirname } from "path"; | ||
| import { fileURLToPath } from "url"; | ||
| import { FlatCompat } from "@eslint/eslintrc"; | ||
| import { defineConfig, globalIgnores } from 'eslint/config'; | ||
| import nextVitals from 'eslint-config-next/core-web-vitals'; | ||
| import nextTs from 'eslint-config-next/typescript'; | ||
|
|
||
| const __filename = fileURLToPath(import.meta.url); | ||
| const __dirname = dirname(__filename); | ||
|
|
||
| const compat = new FlatCompat({ | ||
| baseDirectory: __dirname, | ||
| }); | ||
|
|
||
| const eslintConfig = [ | ||
| ...compat.extends("next/core-web-vitals", "next/typescript"), | ||
| { | ||
| ignores: [ | ||
| "node_modules/**", | ||
| ".next/**", | ||
| "out/**", | ||
| "build/**", | ||
| "next-env.d.ts", | ||
| ], | ||
| }, | ||
| ]; | ||
| const eslintConfig = defineConfig([ | ||
| ...nextVitals, | ||
| ...nextTs, | ||
| // Override default ignores of eslint-config-next. | ||
| globalIgnores([ | ||
| // Default ignores of eslint-config-next: | ||
| '.next/**', | ||
| 'out/**', | ||
| 'build/**', | ||
| 'next-env.d.ts', | ||
| 'node_modules/**', | ||
| ]), | ||
| ]); | ||
|
|
||
| export default eslintConfig; | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
The import path
'eslint/config'and the functionsdefineConfigandglobalIgnoresdon't appear to be part of the standard ESLint 9.x API.According to the ESLint flat config documentation, the correct approach is:
defineConfigwrapper needed){ ignores: [...] }as a config object, notglobalIgnores([...])Standard ESLint 9 flat config should look like:
Please verify that this configuration actually works in your environment, as the current syntax doesn't match ESLint's official flat config specification.