import-js/eslint-plugin-import
在 GitHub 查看Check for importing named exports from CJS module
Open
#928 创建于 2017年9月15日
enhancementhelp wanted
描述
With the new node.js 8.5 ESM support importing CJS modules as if they had named exports is not supported. (Unlike Babel)
Eg:
// bad
import { get } from 'lodash';
//good
import _ from 'lodash';
const get = _.get;
//good
import { get } from 'lodash-es';