vitonsky / eslint-plugin-paths

A plugin for ESLint, to force use paths aliases from tsconfig
https://www.npmjs.com/package/eslint-plugin-paths
Apache License 2.0
48 stars 0 forks source link

[ENHANCEMENT]: export types #56

Open AndreaPontrandolfo opened 4 months ago

AndreaPontrandolfo commented 4 months ago

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

vitonsky commented 4 months ago

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

AndreaPontrandolfo commented 4 months ago

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.

vitonsky commented 4 months ago

It make sense, i will implement it soon