An open API service indexing awesome lists of open source software.

https://github.com/borjamrd/prettier-playground

Tiny typescript sandbox to watch live prettier configuration settings
https://github.com/borjamrd/prettier-playground

Last synced: about 1 year ago
JSON representation

Tiny typescript sandbox to watch live prettier configuration settings

Awesome Lists containing this project

README

          

# Interactive Prettier Playground

image

This project provides a side-by-side interface:

Left Panel: An editable .prettierrc configuration (JSON or YAML).
Right Panel: A TypeScript code editor that formats itself in real-time based on the configuration.
# Features
Real-Time Formatting: Any changes in .prettierrc immediately reflect on the TypeScript code.
Syntax Highlighting: The TypeScript editor displays code with colored syntax.
Error Handling: Invalid .prettierrc settings trigger an error message.
Reset to Default: Quickly restore both the .prettierrc file and the TypeScript code to their initial states.
# Installation and Usage
Clone the Repository:

```bash
git clone git@github.com:borjamrd/prettier-playground.git
```
```bash
npm install
```
```bash
npm run dev
```