You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Prettier module augmentation for custom options #981
The plugin's custom options (xmlWhitespaceSensitivity, xmlSelfClosingSpace, xmlSortAttributesByKey, xmlQuoteAttributes) are not typed on Prettier's Options interface. Consumers get no autocomplete or type narrowing for these options in TypeScript Prettier configs.
Other Prettier plugins (e.g. prettier-plugin-sort-json) include a declare module 'prettier' augmentation:
Importing the plugin should augment Prettier's Options interface with the plugin's custom options, providing autocomplete and type safety in TypeScript configs.
Activity