UNPKG

eslint-plugin-unicorn

Version:
7 lines (5 loc) 202 B
'use strict'; module.exports = identifier => identifier.parent.type === 'ImportSpecifier' && identifier.parent.imported.name === identifier.name && identifier.parent.local.name === identifier.name;