-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
It would be cool if the plugin could automatically detect tsconfig.json to see which first party imports you have, such as web/components/foo. Then those could be moved into the “absolute imports” group, instead of ending up in the (third party) “packages” group.
One idea is to use https://github.com/dividab/tsconfig-paths. Need to check that it actually supports baseUrl, though.
Another idea is to try to require("typescript"). If it’s there, use it to resolve the config.
The initial idea comes from: #18 (comment)
Edit: This is a light-weight package that can do the hard work for us: https://github.com/privatenumber/get-tsconfig
israelKusayev, krzkaczor, xamgore, joaomlneto, AlansCodeLog and 11 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request