function isImportingSelf(context, node, requireName) {
  const filePath = getPhysicalFilename(context);

  // If the input is from stdin, this test can't fail
  if (filePath !== '<text>' && filePath === resolve(requireName, context)) {
    context.report({
      node,
      message: 'Module imports itself.',
    });
  }
}
@fileOverview Forbids a module from importing itself
@author Gio d'Amelio