Prettier Plugin for JSDoc Type Annotations
JSON →A Prettier plugin that formats JSDoc type annotations to match a consistent TypeScript style. Current stable version is 0.2.0, released in early 2025. It focuses solely on JSDoc type syntax (e.g., @type, @param, @returns, @import) unlike broader JSDoc formatting tools. Supports object types, arrays, unions, function types, and complex constructs like @import with aliases and @returns {foo is Foo}. Requires Prettier >=3.5.3 and TypeScript as peer dependencies. Actively maintained with frequent patches fixing edge cases in type parsing.
Traffic · last 30 days ↓58% vs prev 7d
total hits 24
actors 8 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · BD · 🇫🇷 France · 🇩🇪 Germany
Resources
API endpoints
compatibility /v1/registry/prettier-plugin-jsdoc-type/compatibility