function normalizeLegacyOptions(options) {
  if (options.indexOf('allow-primitive-modules') >= 0) {
    return { allowPrimitiveModules: true };
  }
  return options[0] || {};
}
@fileoverview Rule to prefer ES6 to CJS
@author Jamund Ferguson