Skip to content

Commit 098c50c

Browse files
ericyangpanclaude
andcommitted
build: remove ESLint and add syntax highlighting support
- Remove ESLint configuration and migrate to Biome linter - Add rehype-highlight plugin for MDX code block syntax highlighting - Add highlight.js theme imports (light/dark) to global styles - Add custom code block styling with theme switching support - Update dependencies: Biome, Next.js, React, recharts, lucide-react - Optimize package imports for better performance - Move build-time dependencies to devDependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5d7a3cd commit 098c50c

File tree

5 files changed

+20105
-23509
lines changed

5 files changed

+20105
-23509
lines changed

eslint.config.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

next.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import bundleAnalyzer from '@next/bundle-analyzer'
22
import createMDX from '@next/mdx'
33
import type { NextConfig } from 'next'
44
import createNextIntlPlugin from 'next-intl/plugin'
5+
import rehypeHighlight from 'rehype-highlight'
56
import remarkFrontmatter from 'remark-frontmatter'
67
import remarkGfm from 'remark-gfm'
78
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
@@ -70,7 +71,13 @@ const nextConfig: NextConfig = {
7071

7172
// Experimental features for better performance
7273
experimental: {
73-
optimizePackageImports: ['lucide-react', 'next-intl', '@mdx-js/react', 'gray-matter'],
74+
optimizePackageImports: [
75+
'lucide-react',
76+
'next-intl',
77+
'@mdx-js/react',
78+
'recharts',
79+
'@xyflow/react',
80+
],
7481
},
7582

7683
// Compiler optimizations
@@ -152,7 +159,7 @@ const withMDX = createMDX({
152159
extension: /\.mdx?$/,
153160
options: {
154161
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter, remarkGfm],
155-
rehypePlugins: [],
162+
rehypePlugins: [rehypeHighlight],
156163
},
157164
})
158165

0 commit comments

Comments
 (0)