VSCode editor supports Typescript module auto-import. For a library like lodash, it automatically and conviniently adds the following correct import, once sortBy is typed anywhere in the code:
import { sortBy } from "lodash-es";
However, I would like to import all lodash functions from their submodules, like that:
import sortBy from "lodash-es/sortBy";
Is it possible to somehow blacklist top level module "lodash-es", so that VSCode imports from submodule like "lodash-es/sortBy"?
I have a tslint rule https://palantir.github.io/tslint/rules/import-blacklist/ configured, so it prohibits top level import from "lodash-es" at lint time. But in the editor I still have to manually fix every autoimport.