{"size": 454, "ext": "js", "max_stars_repo_path": "tasks/js-hint.js", "max_stars_repo_name": "Bender85/cardschat-slots-guide", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tasks/js-hint.js", "max_issues_repo_name": "Bender85/cardschat-slots-guide", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tasks/js-hint.js", "max_forks_repo_name": "Bender85/cardschat-slots-guide", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.4615384615, "max_line_length": 43, "alphanum_fraction": 0.5}
/**
 * Hint JS
 */
'use strict';

const gulp   = require('gulp'),
      jshint = require('gulp-jshint'),
      notify = require('gulp-notify');

module.exports = function(options) {

  return (cb) => {
    gulp.src(`./${options.src}/js/**/*.js`)
      .pipe(jshint({
        'esversion': 6
      }))
      .pipe(jshint.reporter())
      .pipe(jshint.reporter('fail'))
      .on('error', notify.onError({
        title: 'JS'
      }));

    cb();
  };

};