gxmari007 / vite-plugin-eslint

🚨 ESLint plugin for vite
MIT License
266 stars 44 forks source link

ts can't find the types. #79

Open Linhieng opened 8 months ago

Linhieng commented 8 months ago

When I imported this plugin in vite-vue3 project using ts, ts couldn't find the type file:

Could not find a declaration file for module 'vite-plugin-eslint'. '.../node_modules/vite-plugin-eslint/dist/index.mjs' implicitly has an 'any' type.
  There are types at '.../node_modules/vite-plugin-eslint/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vite-plugin-eslint' library may need to update its package.json or typings.ts(7016)

This is probably due to version issues

affinage-digital commented 4 months ago

@gxmari007 can you upload change to npm ?

kr4chinin commented 1 month ago

@gxmari007 any plans to publish this to npm? seems like it solves ts issue