A Prettier plugin that formats tsconfig.json files by sorting keys according to the official TypeScript tsconfig reference order. Version 0.0.1 is an early release with basic functionality, no comment support, and is marked as work-in-progress. It requires Prettier ^2.0.0 as a peer dependency and Node >=12. Differs from general JSON formatters by applying a specific key ordering for TypeScript configuration files, making tsconfig.json more predictable and easier to navigate.
npm install prettier-plugin-tsconfigVerified import paths — ran on the pinned version, not inferred.
Installation and basic usage: install prettier and plugin, add plugin to config, run prettier to format tsconfig.json files.
Remove comments from tsconfig.json before formatting, or use a different tool.
Review diff before committing; manually verify key ordering is as expected.
Ensure file is named exactly 'tsconfig.json', or use a custom prettier override pattern.
Run 'npm install --save-dev prettier-plugin-tsconfig' to install the plugin.
Remove comments from tsconfig.json before running prettier.
Ensure tsconfig.json is valid JSON; remove trailing commas and malformed syntax.