hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
228 stars 29 forks source link

enhancement: support @import tag #233

Open boneskull opened 3 months ago

boneskull commented 3 months ago

TS introduces @import in v5.5 beta. 🎉

These tags should be recognized by prettier-plugin-jsdoc and formatted appropriately.

If it's doable, it'd be cool to reformat like so:

/** @import {A} from 'a' */
/** @import {B} from 'b' */
/** @import {B2} from 'b' */
/** @import {B3} from 'b' */

to

/**
 * @import {A} from 'a'
 * @import {
 *   B,
 *   B2,
 *   B3 
 * } from 'b'
 */