Skip to content

Commit 2093a72

Browse files
authored
Bump Next.js and drop ESLint (#19898)
This PR bumps Next.js and drops ESLint. We only had ESLint installed because it came with `next lint`. We don't actively use ESLint, it was just used in the playgrounds where we test things out. Dropping this reduces the amount of dependencies we have to deal with. Closes: #19867 Closes: #19852 # Test plan Tested both the `nextjs` and `v3` playgrounds after bumping the Next.js dependency and getting rid of ESLint, and they still work as expected.
1 parent d7fc281 commit 2093a72

File tree

6 files changed

+119
-2531
lines changed

6 files changed

+119
-2531
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@reference "./globals.css";
22

33
.heading {
4-
@apply skew-7;
4+
@apply text-red-500;
55
}

playgrounds/nextjs/package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
8+
"start": "next start"
109
},
1110
"dependencies": {
1211
"@tailwindcss/postcss": "workspace:^",
1312
"fast-glob": "^3.3.3",
14-
"next": "^16.1.6",
15-
"react": "^19.2.4",
16-
"react-dom": "^19.2.4",
13+
"next": "16.2.2",
14+
"react": "19.2.4",
15+
"react-dom": "19.2.4",
1716
"tailwindcss": "workspace:^"
1817
},
1918
"devDependencies": {
2019
"@types/node": "catalog:",
21-
"@types/react": "^19.2.14",
22-
"@types/react-dom": "^19.2.3",
23-
"eslint": "^9.39.2",
24-
"eslint-config-next": "^16.1.6",
20+
"@types/react": "19.2.14",
21+
"@types/react-dom": "19.2.3",
2522
"typescript": "^5.9.3"
23+
},
24+
"pnpm": {
25+
"overrides": {
26+
"@types/react": "19.2.14",
27+
"@types/react-dom": "19.2.3"
28+
}
2629
}
2730
}

playgrounds/nextjs/tsconfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"moduleResolution": "bundler",
1111
"resolveJsonModule": true,
1212
"isolatedModules": true,
13-
"jsx": "preserve",
13+
"jsx": "react-jsx",
1414
"incremental": true,
1515
"plugins": [
1616
{
@@ -20,7 +20,14 @@
2020
"paths": {
2121
"@/*": ["./*"],
2222
},
23+
"target": "ES2017",
2324
},
24-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25+
"include": [
26+
"next-env.d.ts",
27+
"**/*.ts",
28+
"**/*.tsx",
29+
".next/types/**/*.ts",
30+
".next/dev/types/**/*.ts",
31+
],
2532
"exclude": ["node_modules"],
2633
}

playgrounds/v3/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@
99
"upgrade": "node scripts/upgrade.mjs"
1010
},
1111
"dependencies": {
12-
"next": "^16.1.6",
13-
"react": "^19.2.4",
14-
"react-dom": "^19.2.4",
12+
"next": "16.2.2",
13+
"react": "19.2.4",
14+
"react-dom": "19.2.4",
1515
"tailwindcss": "^3"
1616
},
1717
"devDependencies": {
1818
"@types/node": "catalog:",
19-
"@types/react": "^19.2.14",
20-
"@types/react-dom": "^19.2.3",
19+
"@types/react": "19.2.14",
20+
"@types/react-dom": "19.2.3",
2121
"autoprefixer": "^10.4.24",
22-
"eslint": "^9.39.2",
23-
"eslint-config-next": "^16.1.6",
2422
"typescript": "^5.9.3"
23+
},
24+
"pnpm": {
25+
"overrides": {
26+
"@types/react": "19.2.14",
27+
"@types/react-dom": "19.2.3"
28+
}
2529
}
2630
}

playgrounds/v3/tsconfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"moduleResolution": "bundler",
1111
"resolveJsonModule": true,
1212
"isolatedModules": true,
13-
"jsx": "preserve",
13+
"jsx": "react-jsx",
1414
"incremental": true,
1515
"plugins": [
1616
{
@@ -20,7 +20,14 @@
2020
"paths": {
2121
"@/*": ["./*"],
2222
},
23+
"target": "ES2017",
2324
},
24-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25+
"include": [
26+
"next-env.d.ts",
27+
"**/*.ts",
28+
"**/*.tsx",
29+
".next/types/**/*.ts",
30+
".next/dev/types/**/*.ts",
31+
],
2532
"exclude": ["node_modules"],
2633
}

0 commit comments

Comments
 (0)