var gulp = require('gulp');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
var config = require('../config');
var reporter = require('jshint-stylish');
var map = require('map-stream');
var path = require('path');
var events = require('events');
var emmitter = new events.EventEmitter();

var notify = require("gulp-notify");

var errorReporter = function(file, cb) {
    return map(function(file, cb) {
        if (!file.jshint.success) {
            file.jshint.results.forEach(function(err) {
                if (err) {
                    var msg = [
                        path.basename(file.path),
                        'Line: ' + err.error.line,
                        'Reason: ' + err.error.reason
                    ];

                    emmitter.emit('error', new Error(msg.join('\n')));
                }
            });

            gutil.beep();
        }
        cb(null, file);

    });
};

gulp.task('lint', function() {
    return gulp.src(config.lint.src)
        .pipe(jshint())
        .pipe(jshint.reporter(reporter))
        .pipe(errorReporter())
        .on('error', notify.onError(function(err) {
            return err.message;
        }));
});

@@ -206,661 +206,121 @@
 ');%0A
-var path = require('path');%0Avar events = require('events');%0Avar emmitter = new events.EventEmitter();%0A%0Avar notify = require(%22gulp-notify%22);%0A%0Avar errorReporter = function(file, cb) %7B%0A    return map(function(file, cb) %7B%0A        if (!file.jshint.success) %7B%0A            file.jshint.results.forEach(function(err) %7B%0A                if (err) %7B%0A                    var msg = %5B%0A                        path.basename(file.path),%0A                        'Line: ' + err.error.line,%0A                        'Reason: ' + err.error.reason%0A                    %5D;%0A%0A                    emmitter.emit('error', new Error(msg.join('%5Cn')));%0A                %7D%0A            %7D);%0A
+%0Avar errorReporter = function(file, cb) %7B%0A    return map(function(file, cb) %7B%0A        if (!file.jshint.success) %7B
 %0A   
@@ -556,104 +556,8 @@
 r())
-%0A        .on('error', notify.onError(function(err) %7B%0A            return err.message;%0A        %7D))
 ;%0A%7D)

Revert gulp notify lint display (too distracting).