rushstack
rushstack copied to clipboard
[@rushstack/packlets-eslint-plugin] Add support for ESM-style import paths to packlets eslint plugin
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
@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 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.