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:
@ -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}
|
||||
|
@ -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",
|
||||
},
|
||||
},
|
||||
)
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user