Update to NextJS 16

This commit is contained in:
Lncvrt committed 2025-10-24 19:49:04 -07:00
1 parent e40a226185
commit bccfab7713
4 files changed
+43 -32

No files matched your search

+16 -14
View File
@@ -1,16 +1,18 @@
import { dirname } from 'path' import { defineConfig, globalIgnores } from 'eslint/config'
import { fileURLToPath } from 'url' import nextVitals from 'eslint-config-next/core-web-vitals'
import { FlatCompat } from '@eslint/eslintrc' import nextTs from 'eslint-config-next/typescript'
const __filename = fileURLToPath(import.meta.url) const eslintConfig = defineConfig([
const __dirname = dirname(__filename) ...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
'.next/**',
'out/**',
'build/**',
'next-env.d.ts'
])
])
const compat = new FlatCompat({ export default eslintConfig
baseDirectory: __dirname
})
const eslintConfig = [
...compat.extends('next/core-web-vitals', 'next/typescript')
]
export default eslintConfig
+13 -13
View File
@@ -11,21 +11,21 @@
"tauri": "tauri" "tauri": "tauri"
}, },
"dependencies": { "dependencies": {
"@tauri-apps/api": "2.8.0", "@tauri-apps/api": "2.9.0",
"react": "19.1.0", "react": "19.2.0",
"react-dom": "19.1.1", "react-dom": "19.2.0",
"next": "15.5.4" "next": "16.0.0"
}, },
"devDependencies": { "devDependencies": {
"@tauri-apps/cli": "2.8.4", "@tauri-apps/cli": "2.9.1",
"typescript": "5.9.2", "typescript": "5.9.3",
"@types/node": "24.5.2", "@types/node": "24.9.1",
"@types/react": "19.1.15", "@types/react": "19.2.2",
"@types/react-dom": "19.1.9", "@types/react-dom": "19.2.2",
"@tailwindcss/postcss": "4.1.13", "@tailwindcss/postcss": "4.1.16",
"tailwindcss": "4.1.13", "tailwindcss": "4.1.16",
"eslint": "9.36.0", "eslint": "9.38.0",
"eslint-config-next": "15.5.4", "eslint-config-next": "16.0.0",
"@eslint/eslintrc": "3.3.1" "@eslint/eslintrc": "3.3.1"
} }
} }
+4 -2
View File
@@ -1,5 +1,7 @@
const config = { const config = {
plugins: ['@tailwindcss/postcss'] plugins: {
'@tailwindcss/postcss': {}
}
} }
export default config export default config
+10 -3
View File
@@ -11,7 +11,7 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
@@ -22,6 +22,13 @@
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts"
],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }