We need to use .js when importing local typescript files for ESM compatibility. https://github.com/Agoric/ui-kit/pull/76 fixes this, but this PR adds an eslint plugin (thanks solana) to protect against breaking it again.
I looked into other options, like libraries that transform extensionless imports to .js automatically, but seems like .js extensions are a common pattern in typescript libraries, and it seems less risky to not muck around with the build process.
We need to use
.js
when importing local typescript files for ESM compatibility. https://github.com/Agoric/ui-kit/pull/76 fixes this, but this PR adds an eslint plugin (thanks solana) to protect against breaking it again.I looked into other options, like libraries that transform extensionless imports to
.js
automatically, but seems like.js
extensions are a common pattern in typescript libraries, and it seems less risky to not muck around with the build process.Example output: