Files
sundynix-site/admin
Blizzard eee51ddf0a feat(admin): Markdown 编辑器分栏实时预览 + 工具栏
- 左写右预览,react-markdown + remark-gfm(表格/GFM 生效)
- 工具栏一键插入标题/加粗/斜体/代码/链接/列表/引用(按光标选区)
- 预览接 prose-site 排版,编辑页返回链接指向 /posts

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 17:35:05 +08:00
..
2026-07-17 11:51:33 +08:00
2026-07-17 11:51:33 +08:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the Oxlint configuration

If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["react", "typescript", "oxc"],
  "options": {
    "typeAware": true
  },
  "rules": {
    "react/rules-of-hooks": "error",
    "react/only-export-components": ["warn", { "allowConstantExport": true }]
  }
}

See the Oxlint rules documentation for the full list of rules and categories.