sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
735 stars 95 forks source link

include typescript types in package #359

Closed DetachHead closed 1 year ago

DetachHead commented 1 year ago

i use jsdoc type comments in my .prettierrc.cjs file to get type checking on the options:

/** @type {Partial<import('@trivago/prettier-plugin-sort-imports').PrettierConfig>} */
const config = {
    trailingComma: 'all',
    semi: false,
    singleQuote: true,
    printWidth: 100,
    useTabs: false,
    tabWidth: 4,
    importOrderSortSpecifiers: true,
}

module.exports = config

however i can't do that with this plugin as the package only includes the plugin.js and plugin.js.map files

benjaminpreiss commented 1 year ago

Related: #363