tsfmt
JSON →tsfmt is an opinionated TypeScript and JavaScript code formatter using AST-based transformations to enforce structural consistency. Version 0.2.5 (stable) is actively maintained with irregular releases. It goes beyond Prettier by automatically sorting class members, organizing imports, ordering file declarations, and formatting package.json/tsconfig.json. Core opinions include double quotes, semicolons, 4-space indentation, 120-char line width, and trailing commas. Built on the TypeScript compiler API, it resolves dependencies to prevent breaking changes during reordering.
Resources
packagetsfmt ↗