eslint-plugin-paths icon indicating copy to clipboard operation
eslint-plugin-paths copied to clipboard

[ENHANCEMENT]: export types

Open AndreaPontrandolfo opened this issue 10 months ago • 3 comments

Hi, since the project is already in full typescript, it should be trivial to export the types (.d.ts file) with Rollup.

AndreaPontrandolfo avatar Apr 23 '24 19:04 AndreaPontrandolfo

Hi, sure it is possible. Which use case we may solve with this change?

vitonsky avatar Apr 23 '24 19:04 vitonsky

I'm importing your plugin in my sharable config and typescript complains that it cannot find the types declaration. Of course i just "silence" it with declare module 'eslint-plugin-paths'; but it would be better if it was typed. It basically makes it easier to consume for users like me which want to use it inside their own libraries.

AndreaPontrandolfo avatar Apr 23 '24 19:04 AndreaPontrandolfo

It make sense, i will implement it soon

vitonsky avatar Apr 23 '24 19:04 vitonsky