mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
chore: simplify TypeScript config
This commit is contained in:
@ -11,7 +11,7 @@ import remarkMath from "remark-math"
|
||||
|
||||
import { Link } from "@repo/i18n/navigation"
|
||||
import "katex/dist/katex.min.css"
|
||||
import { BlogPostComments } from "./BlogPostComments"
|
||||
import { BlogPostComments } from "./BlogPostComments.tsx"
|
||||
|
||||
const Heading: React.FC<
|
||||
React.DetailedHTMLProps<
|
||||
|
@ -3,8 +3,8 @@ import "katex/dist/katex.min.css"
|
||||
|
||||
import { Typography } from "@repo/ui/Design/Typography"
|
||||
import { MainLayout } from "@repo/ui/Layout/MainLayout"
|
||||
import type { BlogPost } from "./BlogPost"
|
||||
import { BlogPostContent } from "./BlogPostContent"
|
||||
import type { BlogPost } from "./BlogPost.tsx"
|
||||
import { BlogPostContent } from "./BlogPostContent.tsx"
|
||||
|
||||
export interface BlogPostUIProps {
|
||||
blogPost: BlogPost
|
||||
|
@ -2,7 +2,7 @@ import { Link } from "@repo/i18n/navigation"
|
||||
import { Typography } from "@repo/ui/Design/Typography"
|
||||
import { Section, SectionContent } from "@repo/ui/Layout/Section"
|
||||
import { getISODate } from "@repo/utils/dates"
|
||||
import type { BlogPost } from "./BlogPost"
|
||||
import type { BlogPost } from "./BlogPost.tsx"
|
||||
|
||||
export interface BlogPostsProps {
|
||||
posts: BlogPost[]
|
||||
|
@ -2,7 +2,7 @@ import fs from "node:fs"
|
||||
import path from "node:path"
|
||||
|
||||
import matter from "gray-matter"
|
||||
import type { BlogPost, FrontMatter } from "./BlogPost"
|
||||
import type { BlogPost, FrontMatter } from "./BlogPost.tsx"
|
||||
|
||||
export const BLOG_POSTS_PATH = path.join(
|
||||
process.cwd(),
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react"
|
||||
|
||||
import { BLOG_POST_MOCK } from "../BlogPost"
|
||||
import { BlogPostUI as BlogPostUIComponent } from "../BlogPostUI"
|
||||
import { BLOG_POST_MOCK } from "../BlogPost.ts"
|
||||
import { BlogPostUI as BlogPostUIComponent } from "../BlogPostUI.tsx"
|
||||
|
||||
const meta = {
|
||||
title: "Blog/BlogPostUI",
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react"
|
||||
|
||||
import { BLOG_POST_MOCK } from "../BlogPost"
|
||||
import { BlogPosts as BlogPostsComponent } from "../BlogPosts"
|
||||
import { BLOG_POST_MOCK } from "../BlogPost.ts"
|
||||
import { BlogPosts as BlogPostsComponent } from "../BlogPosts.tsx"
|
||||
|
||||
const meta = {
|
||||
title: "Blog/BlogPosts",
|
||||
|
@ -1,18 +1,11 @@
|
||||
{
|
||||
"extends": "@repo/config-typescript/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||
"types": [
|
||||
"@total-typescript/ts-reset",
|
||||
"@repo/i18n/messages.d.ts",
|
||||
"@types/node"
|
||||
],
|
||||
"jsx": "preserve",
|
||||
|
||||
"noEmit": true
|
||||
"@types/node",
|
||||
"@repo/i18n/messages.d.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user