Goal
ใช้งาน Dprint สำหรับ code formatting ที่รวดเร็วและ configurable
Scope
ใช้สำหรับ code formatting ที่รวดเร็ว, pluggable and configurable formatting, รองรับหลายภาษา (TypeScript, JavaScript, JSON, Markdown, TOML, Rust), และ Rust และ WebAssembly
Execute
- ติดตั้ง Dprint
- Initialize Dprint
- Format ทุกไฟล์
- ตรวจสอบ formatting
- อ่าน
guide/installation.mdสำหรับการติดตั้งและ setup - อ่าน
guide/quick-start.mdสำหรับเริ่มต้นใช้งาน - อ่าน
guide/key-concept.mdสำหรับแนวคิดหลัก - อ่าน
guide/how-it-works.mdสำหรับวิธีการทำงาน - อ่าน
guide/features.mdสำหรับ features ที่มี - อ่าน
guide/patterns.mdสำหรับ patterns ทั่วไป - อ่าน
guide/best-practices.mdสำหรับ best practices - อ่าน
guide/integration.mdสำหรับ tool integration - อ่าน
guide/architecture.mdสำหรับ system architecture - อ่าน
guide/structure.mdสำหรับ project structure - อ่าน
guide/troubleshooting.mdสำหรับปัญหาทั่วไป
Rules
- ใช้
bun add -D dprintสำหรับ installation - ใช้
dprint initสำหรับ initialize - ใช้
dprint fmtสำหรับ format - ใช้
dprint checkสำหรับ check formatting - ใช้ backticks สำหรับ commands
- ใช้ code blocks สำหรับ examples
- ใช้ ansi markdown diagrams สำหรับ flow และ architecture
Expected Outcome
- Code formatting ที่ consistent
- Performance ที่รวดเร็ว
- Configuration ที่ flexible
- Multi-language support ที่ comprehensive