fixtsconfig

1.0.1 • Public • Published

fixtsconfig

A tsconfig.json file scrubber for the truly insane.

It will re-write your tsconfig.json file as follows:

  • compilerOptions
  • extends
  • files
  • include
  • exclude
  • compileOnSave
  • all other keys in alphabetical order
  • compilerOptions sorted alphabetically
  • newline at the end of the file

Fix all indenting to 2 spaces.

Oh, and it will tolerate improperly quoted and comma'd JSON thanks to ALCE.

Usage

  1. install it globally
npm i -g fixtsconfig
  1. run it in the same directory as your tsconfig.json, that's it.
fixtsconfig

What you might do if you're clever

npm i cool_package --save && fixtsconfig

Credits

This repo is forked from https://github.com/HenrikJoreteg/fixpack . The most important idea and code is his great work.

License

MIT

Package Sidebar

Install

npm i fixtsconfig

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.98 kB

Total Files

5

Last publish

Collaborators

  • kyo_ago