code: function jshintFileset(fileset) {
      var files = [];
      fileset.forEach(function (file) {
          if (isDirectory(file)) {
              files.push(file + '**/*.js');
          } else {
              files.push(file);
          }
      });
  
      return files;
  }
docs: JS Hint uses a globbing format for both include and exclude filesets. Files are added as is, directories are added using `**/*.js` which includes all Javascript files in all subdirectories.