src/rules/no-duplicates.js
function getDefaultImportName(node) {
  const defaultSpecifier = node.specifiers
    .find(specifier => specifier.type === 'ImportDefaultSpecifier')
  return defaultSpecifier != null ? defaultSpecifier.local.name : undefined
}
function getDefaultImportName(node) {
  const defaultSpecifier = node.specifiers
    .find(specifier => specifier.type === 'ImportDefaultSpecifier')
  return defaultSpecifier != null ? defaultSpecifier.local.name : undefined
}
function getDefaultImportName ( node ) { const defaultSpecifier = node . specifiers . find ( specifier => specifier . type === 'ImportDefaultSpecifier' ) return defaultSpecifier != null ? defaultSpecifier . local . name : undefined }
Get the name of the default import of `node`, if any.
Get the name of the default import of node if any .