Skip to content

Commit

Permalink
chore: upgrade to react 19 and next 15
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianHagelstam committed Dec 11, 2024
1 parent 58f02f0 commit ff0757f
Show file tree
Hide file tree
Showing 5 changed files with 3,489 additions and 1,880 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { FlatCompat } from "@eslint/eslintrc";
import tailwind from "eslint-plugin-tailwindcss";
import { dirname } from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
...tailwind.configs["flat/recommended"],
];

export default eslintConfig;
5 changes: 3 additions & 2 deletions next.config.mjs → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"clean": "rm -rf .next node_modules"
},
"dependencies": {
"@eslint/eslintrc": "^3.2.0",
"@headlessui/react": "^2.2.0",
"@headlessui/tailwindcss": "^0.2.1",
"@heroicons/react": "^2.2.0",
Expand All @@ -26,21 +27,21 @@
"@tremor/react": "^3.18.6",
"@vercel/analytics": "^1.4.1",
"clsx": "^2.1.1",
"next": "14.2.17",
"next": "15.1.0",
"next-auth": "4.24.11",
"next-themes": "^0.4.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"sharp": "^0.33.5"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.9",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-config-next": "^15.0.4",
"eslint": "^9.16.0",
"eslint-config-next": "^15.1.0",
"eslint-plugin-tailwindcss": "^3.17.5",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
Expand Down
Loading

0 comments on commit ff0757f

Please sign in to comment.