You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@GLosch and others have made the case that import _ from 'lodash' is preferable to import { foo } from 'lodash'. Opening this to capture that concern and to open a channel for discussion.
The problem
@GLosch and others have made the case that
import _ from 'lodash'
is preferable toimport { foo } from 'lodash'
. Opening this to capture that concern and to open a channel for discussion.https://github.com/eslint-plugins/eslint-plugin-lodash/blob/master/docs/rules/import.md is a nice way to enfore the named-import approach. I'm sure something exists for the whole lib approach, or we could make a custom rule.
This is also app specific and relates to things like https://github.com/lodash/babel-plugin-lodash, and https://github.com/lodash/lodash-webpack-plugin, but I agree some degree of consistency across apps here would be 💯
The text was updated successfully, but these errors were encountered: