in transforms/React-PropTypes-to-prop-types.js [270:279]
function removeEmptyReactImport(j, root) {
root
.find(j.ImportDeclaration)
.filter(
path =>
path.node.specifiers.length === 0 &&
path.node.source.value === 'react'
)
.replaceWith();
}