-
Notifications
You must be signed in to change notification settings - Fork 35
chore: upgrade to Next.js 16 #409
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
wrslatz
merged 12 commits into
github-community-projects:main
from
capitalone-contributions:wrslatz-nextjs-16-upgrade
Feb 6, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9024882
chore: migrate to eslint cli using next codemod
wrslatz 582d206
chore: migrate to eslint 9
wrslatz d455f67
chore: automatic lint fixes
wrslatz 15c4dd4
chore: exclude tests from linting
wrslatz 20ea3e5
chore: fix remaining lint errors from migration
wrslatz f370157
chore: migrate to next.js 16 using next codemod
wrslatz 53f5b6a
chore: set minimum node.js version for next.js 16
wrslatz 1475b2c
chore: let typescript handle redeclaration checks
wrslatz e6afcee
chore: disable new react 19 effect lint check
wrslatz e0554fe
chore: rename middleware to proxy for deprecation
wrslatz cab5fa6
chore: fix remaining lint errors from migration
wrslatz 346d021
chore: fix build post next.js 16 migration
wrslatz 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 was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| import nextTypescript from 'eslint-config-next/typescript' | ||
| import nextCoreWebVitals from 'eslint-config-next/core-web-vitals' | ||
| import { dirname } from 'path' | ||
| import { fileURLToPath } from 'url' | ||
| import js from '@eslint/js' | ||
| import tsPlugin from '@typescript-eslint/eslint-plugin' | ||
| import tsParser from '@typescript-eslint/parser' | ||
|
|
||
| const __filename = fileURLToPath(import.meta.url) | ||
| const __dirname = dirname(__filename) | ||
|
|
||
| export default [ | ||
| ...nextTypescript, | ||
| js.configs.recommended, | ||
| ...nextCoreWebVitals, | ||
| { | ||
| files: ['src/**/*.{ts,tsx}'], | ||
| languageOptions: { | ||
| parser: tsParser, | ||
| parserOptions: { | ||
| project: './tsconfig.json', | ||
| }, | ||
| globals: { | ||
| React: 'readonly', | ||
| }, | ||
| }, | ||
| plugins: { | ||
| '@typescript-eslint': tsPlugin, | ||
| }, | ||
| rules: { | ||
| ...tsPlugin.configs['recommended'].rules, | ||
| '@typescript-eslint/no-misused-promises': 'off', | ||
| '@typescript-eslint/no-unused-vars': [ | ||
| 'error', | ||
| { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, | ||
| ], | ||
| // TypeScript handles redeclaration checks - allows type + value with same name | ||
| 'no-redeclare': 'off', | ||
| // TODO: Refactor hooks to use React Query instead of useEffect + setState pattern | ||
| 'react-hooks/set-state-in-effect': 'off', | ||
| }, | ||
| }, | ||
| { | ||
| // TypeScript declaration files - disable no-undef as types are ambient | ||
| files: ['src/**/*.d.ts'], | ||
| rules: { | ||
| 'no-undef': 'off', | ||
| }, | ||
| }, | ||
| { | ||
| // TODO: add linting for tests | ||
| // Test files - lint without type-checking (not in tsconfig.json project) | ||
| // TODO: add type checking for tests | ||
| // files: ['test/**/*.{ts,tsx}'], | ||
| // languageOptions: { | ||
| // parser: tsParser, | ||
| // globals: jestPlugin.environments.globals.globals, | ||
| // }, | ||
| // plugins: { | ||
| // '@typescript-eslint': tsPlugin, | ||
| // jest: jestPlugin, | ||
| // }, | ||
| // rules: { | ||
| // ...tsPlugin.configs['recommended'].rules, | ||
| // ...jestPlugin.configs['recommended'].rules, | ||
| // '@typescript-eslint/no-unused-vars': [ | ||
| // 'error', | ||
| // { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, | ||
| // ], | ||
| // // TODO: clean up conditional tests | ||
| // 'jest/no-conditional-expect': 'off', | ||
| // }, | ||
| }, | ||
| { | ||
| // TODO: lint tests | ||
| ignores: ['node_modules/', '.next/', 'build/', 'test/', '*.mjs', '*.js'], | ||
| }, | ||
wrslatz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
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.
Uh oh!
There was an error while loading. Please reload this page.