title: fixing an eslint error - Calls to require() should use string literals
body: <p>I am correcting some errors which are eslint related and I am getting the following errors:</p>
  <p><a href="https://i.stack.imgur.com/Z2B3T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z2B3T.png" alt="enter image description here" /></a></p>
  <pre><code>const requireFiles = (directory, app) =&gt; {
     fs.readdirSync(directory).forEach(fileName =&gt; {
    if (fs.lstatSync(`${directory}/${fileName}`).isDirectory()) {
    requireFiles(`${directory}/${fileName}`, app);
    return;
    }
    // Skip this file
    if (fileName === 'index.js' &amp;&amp; directory === __dirname) return;
    // Skip unknown filetypes
    if (validFileTypes.indexOf(fileName.split('.').pop()) === -1) return;
    // Require the file.
    const path = `${directory}/${fileName}`;
    const module = require(path).default;
    global.logger.logInfo('-requiring : ', path);
    if (module.init) {
       module.init(app);
       global.logger.logInfo('-initing : ', path);
      }
   });
  };
  </code></pre>
  <p>How I understand this it is asking for a string but I creating this in the line above, is there a better way of doing this?</p>