prettier-plugin-tsconfig
v0.0.1
Published
Prettier plugin to format tsconfig.json
Downloads
520
Readme
prettier-plugin-tsconfig
✨ An opinionated prettier plugin to format tsconfig.json
.
NOTE: work in progress, please check the formatted tsconfig.json
before committing changes
This plugin sorts keys in tsconfig.json
according to the order of options appearing in the tsconfig reference.
Currently does NOT supports comments.
Installation
Install
prettier
andprettier-plugin-tsconfig
.$ yarn add --dev prettier prettier-plugin-tsconfig
Add
prettier
as a runnable script.Example:
{ "scripts": { "format": "prettier --write \"**/*.{js,json,ts}\"" } }
Run
prettier
.$ yarn run format