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.
based off the conversation here: microsoft/TypeScript#16577
if a
.tsor.tsxfile imports a.jsfile it will resolve.ts.tsxor.jsbut theplugin:import/typescriptdoesn't seem to have support for this functionality.the
jsextension 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
.jsfiles to make sure I'm not missing anything when exporting my package to the web.