const constants = generateConstants([
/*
  Action constants go here. Constants should uppper snake cased.
  'DATA_REQUESTED',
  'BUTTON_CLICKED',
  'INCREASE_COUNT'
 */
]);

export default constants;

function generateConstants(names) {
  const constants = {};
  names.forEach(name => {
    constants[name] = name;
  });
  return Object.freeze(constants);
}

@@ -247,16 +247,19 @@
 onstants
+Map
  = %7B%7D;%0A 
@@ -296,16 +296,19 @@
 onstants
+Map
 %5Bname%5D =
@@ -352,13 +352,16 @@
 onstants
+Map
 );%0A%7D%0A

correct linter error on double declaration of 'constants'