Build a Code Formatter Playground
Build a web tool where you paste code, configure formatting rules, and see formatted output with a diff view.
Requirements
Paste code in the left panel, see formatted code in the right panelSupport at least 3 languages: JavaScript/TypeScript, JSON, CSSConfigurable rules: indent size (2/4/tabs), semicolons, quotes (single/double), trailing commasDiff view highlighting what changedCopy formatted code buttonReset to defaults buttonPreset configurations (Prettier default, StandardJS, Airbnb)Technical Notes
Use Prettier as the formatting engine (runs in-browser via WASM). Use a diff library for highlighting changes.
Bonus Points
.prettierrc import/exportFormat on pasteMultiple file tabs