antfu / eslint-config

Anthony's ESLint config preset
https://eslint-config.antfu.me/
MIT License
3.81k stars 426 forks source link

Comments are removed by `tsup` #496

Closed pauliesnug closed 3 months ago

pauliesnug commented 3 months ago

Describe the bug

When the package is built, all comments including descriptions of features and rules, as well as documentation/jsdoc of the antfu factory are stripped. This impacts the ability to configure the config, but also reduces package size. Is this intentional?

Reproduction

Install @antfu/eslint-config and look at the typings in hover menu.

System Info

n/a

Used Package Manager

n/a

Validations

Contributions

thenbe commented 3 months ago

The distributed files still include the jsdoc style comments in the dist/index.d.ts file, no? That's what my editor is using to provide intellisense for the @antfu/eslint-config package when I hover or autocomplete when I start typing.

Are you seeing something different? I'm on v2.20.0.

pauliesnug commented 3 months ago

The distributed files still include the jsdoc style comments in the dist/index.d.ts file, no? That's what my editor is using to provide intellisense for the @antfu/eslint-config package when I hover or autocomplete when I start typing.

Are you seeing something different? I'm on v2.20.0.

Hmm... I also see them in the dist/index.d.ts, but for some reason VSCode isn't adding inlay hints from them.