rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[@rushstack/packlets-eslint-plugin] Add support for ESM-style import paths to packlets eslint plugin

Open dmaretskyi opened this issue 3 years ago • 2 comments
trafficstars

ES-modules forces you to reference index.js file when importing a directory:

import { foo } from '../../packlets/foo/index.js';

This PR updates the packlets plugin to treat those as valid imports from the packlet root.

Summary

Details

How it was tested

dmaretskyi avatar Oct 10 '22 13:10 dmaretskyi

@octogonz Out of curiosity, what's the status of this? I'd love to use packlets, but this seems like a blocker for me.

ethanresnick avatar Jun 01 '23 22:06 ethanresnick

@ethanresnick I think it just slipped through the cracks 😅

Are you able to test it? If it works for you, then we can merge+release it.

BTW if I don't seem to be replying on GitHub, you can also reach me on Zulip and Twitter DM.

octogonz avatar Jun 09 '23 03:06 octogonz