You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to build ESModules with TypeScript, we need to import our .ts files with a .js extension, like ./path/to/file.js. If I enable eslint-plugin-import, it throws the error Missing file extension "ts" for "./path/to/file.js" import/extensions. How do I configure eslint-plugin-import to allow me to import files the way they need to be imported in order to export valid ESM?
The text was updated successfully, but these errors were encountered:
In order to build ESModules with TypeScript, we need to import our
.ts
files with a.js
extension, like./path/to/file.js
. If I enable eslint-plugin-import, it throws the errorMissing file extension "ts" for "./path/to/file.js" import/extensions
. How do I configure eslint-plugin-import to allow me to import files the way they need to be imported in order to export valid ESM?The text was updated successfully, but these errors were encountered: