Skip to content

Commit c3c8178

Browse files
chore: bump Next.js to 15.5
1 parent 83f5c0d commit c3c8178

File tree

11 files changed

+138
-182
lines changed

11 files changed

+138
-182
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import jsxA11y from "eslint-plugin-jsx-a11y";
88
import noRelativeImportPathsPlugin from "eslint-plugin-no-relative-import-paths";
99
import reactPlugin from "eslint-plugin-react";
1010
import reactCompiler from "eslint-plugin-react-compiler";
11+
// eslint-disable-next-line import-x/default
1112
import hooksPlugin from "eslint-plugin-react-hooks";
1213
import tseslint from "typescript-eslint";
1314

@@ -44,6 +45,7 @@ export default tseslint.config(
4445
...hooksPlugin.configs.recommended.rules,
4546
"no-relative-import-paths/no-relative-import-paths": "error",
4647
"react-compiler/react-compiler": "error",
48+
"import-x/no-named-as-default-member": "off",
4749
/** @see https://medium.com/weekly-webtips/how-to-sort-imports-like-a-pro-in-typescript-4ee8afd7258a */
4850
"import-x/order": [
4951
"error",

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const withSerwist = withSerwistInit({
66
});
77

88
export default withSerwist({
9-
reactStrictMode: true,
9+
typedRoutes: true,
1010
staticPageGenerationTimeout: 120,
1111
...(global.process.env["BUILD_STANDALONE"] === "true" ? { output: "standalone" } : {}),
1212
async redirects() {
@@ -29,7 +29,7 @@ export default withSerwist({
2929
remotePatterns: [
3030
{
3131
protocol: "https",
32-
hostname: new URL(global.process.env["NEXT_PUBLIC_CONFIG_HOST"]!).hostname,
32+
hostname: new URL(global.process.env["NEXT_PUBLIC_CONFIG_HOST"] ?? "").hostname,
3333
},
3434
{
3535
protocol: "https",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"prod": "run-s build start",
1111
"prettier": "prettier --write '**/*.{js,mjs,ts,tsx,md,json,yaml,css}' --ignore-path=.gitignore",
1212
"prettier:check": "prettier --check '**/*.{js,mjs,ts,tsx,md,json,yaml,css}' --ignore-path=.gitignore",
13-
"lint": "next lint --ignore-path=.gitignore",
14-
"lint:fix": "next lint --fix --ignore-path=.gitignore",
13+
"lint": "eslint --ignore-pattern '.next/*' --ignore-pattern 'next-env.d.ts' --ignore-pattern 'public/sw.js'",
14+
"lint:fix": "eslint --fix --ignore-pattern '.next/*' --ignore-pattern 'next-env.d.ts' --ignore-pattern 'public/sw.js'",
1515
"typecheck": "tsc --noEmit",
1616
"check": "run-p prettier:check lint typecheck",
1717
"fix": "run-s prettier lint:fix",
@@ -30,7 +30,7 @@
3030
"js-cookie": "^3.0.5",
3131
"jwt-decode": "^4.0.0",
3232
"luxon": "^3.7.1",
33-
"next": "15.3.0",
33+
"next": "15.5.0",
3434
"react": "^19.1.1",
3535
"react-device-detect": "^2.2.3",
3636
"react-dom": "^19.1.1",
@@ -44,7 +44,7 @@
4444
},
4545
"devDependencies": {
4646
"@eslint/js": "^9.33.0",
47-
"@next/eslint-plugin-next": "^15.3.0",
47+
"@next/eslint-plugin-next": "^15.5.0",
4848
"@tsconfig/next": "^2.0.3",
4949
"@tsconfig/strictest": "^2.0.5",
5050
"@types/js-cookie": "^3.0.6",

0 commit comments

Comments
 (0)