Prettier Plugin for T-SQL (SQL Server)
JSON →Prettier plugin for formatting T-SQL (Microsoft SQL Server) using Microsoft's official ScriptDom parser (TSql180Parser), supporting syntax up to SQL Server 2025. Version 0.6.4 is beta (breaking changes possible before 1.0). Requires .NET 8+ runtime and Node >=20. Ships TypeScript types. Differentiates from other SQL formatters by using the official parser, preserving comments and batch separators, and covering a broad range of T-SQL features including DML, CTEs, window functions, pivot, temporal tables, JSON functions, and full-text predicates. Integrates with Prettier's editor extensions.
Resources
packageprettier-plugin-tsql ↗
API endpoints
full doc /v1/registry/prettier-plugin-tsql