mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-24 16:53:54 +00:00
26 lines
817 B
JavaScript
26 lines
817 B
JavaScript
var gulp = require('gulp');
|
|
var jshint = require('gulp-jshint');
|
|
var stylish = require('jshint-stylish');
|
|
var cache = require('gulp-cached');
|
|
var paths = require('./paths.js');
|
|
|
|
|
|
gulp.task('jshint', function () {
|
|
return gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
|
.pipe(cache('jshint'))
|
|
.pipe(jshint({
|
|
'-W030': false,
|
|
'-W064': false,
|
|
'-W097': false, //Use the function form of “use strict”
|
|
'-W100': false, //Silently deleted characters (in locales)
|
|
'undef': true,
|
|
'globals': {
|
|
'require': true,
|
|
'define': true,
|
|
'window': true,
|
|
'document': true,
|
|
'console': true
|
|
}
|
|
}))
|
|
.pipe(jshint.reporter(stylish));
|
|
});
|