-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The problem
@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.
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 💯
Metadata
Metadata
Assignees
Labels
No labels