-
- Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
based off the conversation here: microsoft/TypeScript#16577
if a .ts or .tsx file imports a .js file it will resolve .ts .tsx or .js but the plugin:import/typescript doesn't seem to have support for this functionality.
the js extension is used to reference files that WILL be compiled to, so they technically don't exist, but this is how the TS team is allowing people to write ESM compatible modules in TypeScript.
It would be nice to have this eslint plugin to work with this out of the box so I can enforce that all of my modules import .js files to make sure I'm not missing anything when exporting my package to the web.
fungiboletus, webdeveric, AndrewLeedham, rossng, manovotny and 19 moreDawidNazarkoabraham, teppeis, neviaumi and DawidNazarko