-
Notifications
You must be signed in to change notification settings - Fork 3
Update Next.js to v16.2.4 #250
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
ea16d15
28d4fef
a6a2202
be839fe
88f1691
bba8921
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import nextConfig from "eslint-config-next/core-web-vitals"; | ||
| import prettierRecommended from "eslint-plugin-prettier/recommended"; | ||
| import tseslint from "typescript-eslint"; | ||
|
|
||
| export default tseslint.config( | ||
| ...nextConfig, | ||
| ...tseslint.configs.recommendedTypeChecked, | ||
| ...tseslint.configs.stylisticTypeChecked, | ||
| prettierRecommended, | ||
| { | ||
| languageOptions: { | ||
| parserOptions: { | ||
| project: true, | ||
| }, | ||
| }, | ||
| rules: { | ||
| "@typescript-eslint/array-type": "off", | ||
| "@typescript-eslint/consistent-type-definitions": "off", | ||
| "@typescript-eslint/consistent-type-imports": [ | ||
| "warn", | ||
| { | ||
| prefer: "type-imports", | ||
| fixStyle: "inline-type-imports", | ||
| }, | ||
| ], | ||
| "@typescript-eslint/no-unused-vars": [ | ||
| "warn", | ||
| { argsIgnorePattern: "^_" }, | ||
| ], | ||
| "@typescript-eslint/require-await": "off", | ||
| "@typescript-eslint/no-misused-promises": [ | ||
| "error", | ||
| { | ||
| checksVoidReturn: { attributes: false }, | ||
| }, | ||
| ], | ||
| "no-console": "warn", | ||
| "prettier/prettier": "error", | ||
| }, | ||
| }, | ||
| ); |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import * as React from "react"; | ||
| import { Button } from "~/components/ui/button"; | ||
| import { | ||
| DropdownMenu, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,7 @@ export class PrismaClient { | |
| /// outside of this class except in `auth.ts`. | ||
| // @ts-expect-error - Used in src/auth.ts | ||
| private toPrismaAdapter() { | ||
| // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the assertion instead
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 88f1691 — removed the |
||
| return PrismaAdapter(this.#db) as Adapter; | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ | |
| "noEmit": true, | ||
| "module": "ESNext", | ||
| "moduleResolution": "Bundler", | ||
| "jsx": "preserve", | ||
| "jsx": "react-jsx", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Next.js 16 requires the React automatic JSX runtime ( |
||
| "plugins": [{ "name": "next" }], | ||
| "incremental": true, | ||
|
|
||
|
|
@@ -42,7 +42,6 @@ | |
| } | ||
| }, | ||
| "include": [ | ||
| ".eslintrc.cjs", | ||
| "next-env.d.ts", | ||
| "**/*.ts", | ||
| "**/*.tsx", | ||
|
|
||
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.
This file should export
proxyinstead ofmiddleware.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.
Fixed in 88f1691 —
src/proxy.tsnow exportsproxy.