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
- Host: GitHub
- URL: https://github.com/anuraghazra/playground-format-on-save
- Owner: anuraghazra
- Created: 2022-02-11T19:25:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T16:00:13.000Z (about 1 year ago)
- Last Synced: 2024-05-01T20:56:41.849Z (about 1 year ago)
- Language: TypeScript
- Size: 91.8 KB
- Stars: 25
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
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 browserThen 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.