Skip to content

Commit

Permalink
Merge pull request #92 from WilliamTuominiemi/chore/react-19
Browse files Browse the repository at this point in the history
chore: upgrade to react 19 and next 15
  • Loading branch information
hagelstam authored Dec 11, 2024
2 parents 5a24a60 + e92ffec commit 83f76dd
Show file tree
Hide file tree
Showing 7 changed files with 7,540 additions and 715 deletions.
12 changes: 0 additions & 12 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 eslintPluginPrettier from "eslint-plugin-prettier/recommended";
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"),
eslintPluginPrettier,
];

export default eslintConfig;
7 changes: 5 additions & 2 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/** @type {import("next").NextConfig} */
module.exports = {
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
reactStrictMode: true,
i18n: {
locales: ["en", "sv", "fi"],
defaultLocale: "en",
},
images: { remotePatterns: [{ hostname: "lh3.googleusercontent.com" }] },
};

export default nextConfig;
Loading

0 comments on commit 83f76dd

Please sign in to comment.