1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

build(deps): update latest

This commit is contained in:
2024-12-06 09:30:44 +01:00
parent 251b0b4038
commit d52a0c6f08
12 changed files with 2339 additions and 2173 deletions

View File

@ -103,13 +103,14 @@ export const BlogPostContent: React.FC<BlogPostContentProps> = async (
},
a: (props) => {
const { href = "", ...rest } = props
if (href.startsWith("#")) {
const hrefString = href as string
if (hrefString.startsWith("#")) {
return <a {...props} />
}
if (href.startsWith("../posts/")) {
if (hrefString.startsWith("../posts/")) {
return (
<Link
href={href
href={hrefString
.replace("../posts/", "/blog/")
.replace(".md", "")}
{...rest}

View File

@ -1,7 +1,6 @@
import typescriptESLint from "typescript-eslint"
import configConventions from "eslint-config-conventions"
import importX from "eslint-plugin-import-x"
import unicorn from "eslint-plugin-unicorn"
export default typescriptESLint.config(
{
@ -20,7 +19,6 @@ export default typescriptESLint.config(
name: "config-eslint",
plugins: {
"import-x": importX,
unicorn,
},
rules: {
"import-x/extensions": [
@ -33,8 +31,6 @@ export default typescriptESLint.config(
jsx: "never",
},
],
"unicorn/explicit-length-check": "error",
"unicorn/consistent-destructuring": "off",
},
},
)

View File

@ -155,10 +155,6 @@ code .line::before {
word-break: normal;
}
code .line:last-child {
display: none;
}
.katex .base {
display: inline !important;
white-space: normal !important;

View File

@ -11,7 +11,7 @@ export const LOCALE_PREFIX = "never"
export const THEMES = ["light", "dark"] as const
export type Theme = (typeof THEMES)[number]
export const THEME_DEFAULT = "light" as Theme
export const THEME_DEFAULT = "light" satisfies Theme
export const TIMEZONE = process.env["TZ"] ?? "UTC"