diff --git a/examples/with-eslint/app/layout.tsx b/examples/with-eslint/app/layout.tsx
new file mode 100644
index 0000000000000..112756e6bfcdc
--- /dev/null
+++ b/examples/with-eslint/app/layout.tsx
@@ -0,0 +1,18 @@
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Create Next App",
+ description: "Generated by create next app",
+};
+
+export default function RootLayout({
+ children,
+}: Readonly<{
+ children: React.ReactNode;
+}>) {
+ return (
+
+
{children}
+
+ );
+}
diff --git a/examples/with-eslint/app/page.tsx b/examples/with-eslint/app/page.tsx
new file mode 100644
index 0000000000000..6fc749459d3f9
--- /dev/null
+++ b/examples/with-eslint/app/page.tsx
@@ -0,0 +1,8 @@
+export default function Home() {
+ return (
+
+ );
+}
diff --git a/examples/with-eslint/package.json b/examples/with-eslint/package.json
index a2977eecec192..67a310d36189f 100644
--- a/examples/with-eslint/package.json
+++ b/examples/with-eslint/package.json
@@ -1,18 +1,21 @@
{
"private": true,
"scripts": {
- "dev": "next",
+ "dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "latest",
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1"
},
"devDependencies": {
- "eslint": "^7.24.0",
+ "@types/node": "^22.5.4",
+ "@types/react": "^18.3.5",
+ "@types/react-dom": "^18.3.0",
+ "eslint": "^8.57.0",
"eslint-config-next": "latest"
}
}
diff --git a/examples/with-eslint/pages/index.js b/examples/with-eslint/pages/index.js
deleted file mode 100644
index 6773620f1ff66..0000000000000
--- a/examples/with-eslint/pages/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-const Home = () => (
-
-);
-
-export default Home;
diff --git a/examples/with-eslint/tsconfig.json b/examples/with-eslint/tsconfig.json
new file mode 100644
index 0000000000000..d8b93235f205e
--- /dev/null
+++ b/examples/with-eslint/tsconfig.json
@@ -0,0 +1,27 @@
+{
+ "compilerOptions": {
+ "target": "ES2017",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "incremental": true,
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "paths": {
+ "@/*": ["./*"]
+ }
+ },
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
+ "exclude": ["node_modules"]
+}