mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
build(deps): update Next.js to v15 and ESLint to v9
This commit is contained in:
@ -1,14 +0,0 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": ["@repo/eslint-config/nextjs/.eslintrc.json"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"projectService": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
packages/ui/eslint.config.js
Normal file
13
packages/ui/eslint.config.js
Normal file
@ -0,0 +1,13 @@
|
||||
import typescriptESLint from "typescript-eslint"
|
||||
import configNextjs from "@repo/eslint-config/nextjs"
|
||||
|
||||
export default typescriptESLint.config(...configNextjs, {
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
languageOptions: {
|
||||
parser: typescriptESLint.parser,
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
})
|
@ -23,7 +23,7 @@
|
||||
"./Layout/Section": "./src/Layout/Section/Section.tsx"
|
||||
},
|
||||
"scripts": {
|
||||
"lint:eslint": "eslint src --max-warnings 0 --report-unused-disable-directives",
|
||||
"lint:eslint": "eslint src --max-warnings 0",
|
||||
"lint:typescript": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -51,6 +51,7 @@
|
||||
"eslint": "catalog:",
|
||||
"postcss": "catalog:",
|
||||
"tailwindcss": "catalog:",
|
||||
"typescript-eslint": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,13 @@ export const CurriculumVitaeAbout: React.FC<CurriculumVitaeAboutProps> = () => {
|
||||
title={t("curriculum-vitae.about.title")}
|
||||
icon={<FaUser size={24} />}
|
||||
>
|
||||
<p>{t.rich("curriculum-vitae.about.description")}</p>
|
||||
<p>
|
||||
{t.rich("curriculum-vitae.about.description", {
|
||||
br: () => {
|
||||
return <br />
|
||||
},
|
||||
})}
|
||||
</p>
|
||||
</CurriculumVitaeSection>
|
||||
)
|
||||
}
|
||||
|
@ -11,10 +11,10 @@ export const CurriculumVitaeEducation: React.FC<
|
||||
|
||||
const educations = [
|
||||
{
|
||||
years: t("curriculum-vitae.education.cnam.years.2024-2025.title"),
|
||||
years: t("curriculum-vitae.education.cnam.years.2024-2027.title"),
|
||||
studyType: t("curriculum-vitae.education.cnam.study-type"),
|
||||
institution: t("curriculum-vitae.education.cnam.institution"),
|
||||
score: t("curriculum-vitae.education.cnam.years.2024-2025.description"),
|
||||
score: t("curriculum-vitae.education.cnam.years.2024-2027.description"),
|
||||
courses: [],
|
||||
},
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Link } from "@repo/i18n/navigation"
|
||||
import { Link } from "@repo/i18n/routing"
|
||||
import { useTranslations } from "next-intl"
|
||||
import Image from "next/image"
|
||||
import { BirthDate } from "../Home/About/AboutList/BirthDate.tsx"
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { classNames } from "@repo/config-tailwind/classNames"
|
||||
import { Link as NextLink } from "@repo/i18n/navigation"
|
||||
import { Link as NextLink } from "@repo/i18n/routing"
|
||||
import type { VariantProps } from "cva"
|
||||
import { cva } from "cva"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { classNames } from "@repo/config-tailwind/classNames"
|
||||
import { Link as NextLink } from "@repo/i18n/navigation"
|
||||
import { Link as NextLink } from "@repo/i18n/routing"
|
||||
import { FiExternalLink } from "react-icons/fi"
|
||||
|
||||
export interface LinkProps extends React.ComponentProps<typeof NextLink> {
|
||||
|
@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { useRouter } from "@repo/i18n/navigation"
|
||||
import { useRouter } from "@repo/i18n/routing"
|
||||
import { useTranslations } from "next-intl"
|
||||
import { useEffect, useTransition } from "react"
|
||||
import { Button } from "../../Design/Button/Button.tsx"
|
||||
|
@ -10,7 +10,11 @@ export const AboutDescription: React.FC<AboutDescriptionProps> = () => {
|
||||
return (
|
||||
<div className="dark:text-gray my-6 max-w-md text-center text-black">
|
||||
<Typography as="p" variant="text1" className="my-6">
|
||||
{t.rich("home.about.description")}
|
||||
{t.rich("home.about.description", {
|
||||
strong: (children) => {
|
||||
return <strong>{children}</strong>
|
||||
},
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
<Button href="/curriculum-vitae" variant="outline">
|
||||
|
@ -19,6 +19,12 @@ export const Interests: React.FC<InterestsProps> = () => {
|
||||
id: "code",
|
||||
title: t("home.interests.code.title"),
|
||||
description: t.rich("home.interests.code.description", {
|
||||
br: () => {
|
||||
return <br />
|
||||
},
|
||||
strong: (children) => {
|
||||
return <strong>{children}</strong>
|
||||
},
|
||||
"abbr-ux": (children) => {
|
||||
return <abbr title="User Experience">{children}</abbr>
|
||||
},
|
||||
@ -29,6 +35,12 @@ export const Interests: React.FC<InterestsProps> = () => {
|
||||
id: "open-source",
|
||||
title: t("home.interests.open-source.title"),
|
||||
description: t.rich("home.interests.open-source.description", {
|
||||
br: () => {
|
||||
return <br />
|
||||
},
|
||||
strong: (children) => {
|
||||
return <strong>{children}</strong>
|
||||
},
|
||||
"github-link": (children) => {
|
||||
return (
|
||||
<Link href={GIT_REPO_LINK} target="_blank">
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { classNames } from "@repo/config-tailwind/classNames"
|
||||
import { usePathname, useRouter } from "@repo/i18n/navigation"
|
||||
import { usePathname, useRouter } from "@repo/i18n/routing"
|
||||
import type { Locale } from "@repo/utils/constants"
|
||||
import { LOCALES } from "@repo/utils/constants"
|
||||
import { useLocale } from "next-intl"
|
||||
|
Reference in New Issue
Block a user