src/cli.js
function validateMaxFileSize(pluginDir) {
  return (maxBytes, filePath) => {
    try {
      const stat = fs.statSync(path.join(pluginDir, filePath));
      return stat.size <= maxBytes;
    } catch (e) {
      return false;
    }
  };
}
function validateMaxFileSize(pluginDir) {
  return (maxBytes, filePath) => {
    try {
      const stat = fs.statSync(path.join(pluginDir, filePath));
      return stat.size <= maxBytes;
    } catch (e) {
      return false;
    }
  };
}
function validateMaxFileSize ( pluginDir ) { return ( maxBytes , filePath ) => { try { const stat = fs . statSync ( path . join ( pluginDir , filePath ) ) ; return stat . size <= maxBytes ; } catch ( e ) { return false ; } } ; }
Return validator for `maxFileSize` keyword

@param {string} pluginDir
@return {function(number, string): boolean}
Return validator for maxFileSize keyword