When building browser tools you want to keep the bundles as small as possible. A lot of client side libraries offer you to take a dependency on the whole package or import modules directly (eg: lodash, react-bootstrap).
The second parameter takes an array of the name of the library you want to test against (Only takes strings currently).
With the following config
"lean-imports/import": [1, ["lodash"]]
The following patterns are considered warnings:
import _ from 'lodash';
import { default as something } from 'lodash';
import 'lodash';
The following patterns are not considered warnings:
import find from 'lodash/collection/find';
If you do not care that that an entire libary is imported.