prettier-plugin-tsconfig

0.0.1 • Public • Published

prettier-plugin-tsconfig

npm-badge license-badge

✨ 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

  1. Install prettier and prettier-plugin-tsconfig.

    $ yarn add --dev prettier prettier-plugin-tsconfig
  1. Add prettier as a runnable script.

    Example:

    {
        "scripts": {
            "format": "prettier --write \"**/*.{js,json,ts}\""
        }
    }
  1. Run prettier.

    $ yarn run format

Readme

Keywords

none

Package Sidebar

Install

npm i prettier-plugin-tsconfig

Weekly Downloads

92

Version

0.0.1

License

MIT

Unpacked Size

11.4 kB

Total Files

9

Last publish

Collaborators

  • lokshunhung