Guys I'm trying to write a ESlint plugin to sort the import modules based the rules of my company and I ran into this question that I don't know how to determine if an import is an external npm package.
e.g.
import _ from 'lodash';
import moment from 'moment';
Thanks.