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

https://github.com/anuraghazra/playground-format-on-save

TypeScript playground plugin to save on format
https://github.com/anuraghazra/playground-format-on-save

Last synced: 3 months ago
JSON representation

TypeScript playground plugin to save on format

Awesome Lists containing this project

README

        

## TypeScript Playground Plugin

TypeScript Playground plugin to save on format

## Features

- Format code with prettier with CTRL+S
- Customizable prettier config
- Prevents playground link to be copied into clipboard
- Support for prettifying dts output (check the .D.TS panel)

## Running this plugin

- [Click this link](https://www.typescriptlang.org/play?install-plugin=playground-format-on-save) to install

or

- Open up the TypeScript Playground
- Go the "Plugins" in the sidebar
- Look for "Plugins from npm"
- Add "[name]"
- Reload the browser

Then it will show up as a tab in the sidebar.

## Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full details, however, TLDR:

```sh
git clone ...
yarn install
yarn start
```

Then tick the box for starting plugin development inside the TypeScript Playground.