update linting

This commit is contained in:
Doug Fritz 2014-09-04 16:53:27 -07:00
parent 82e4922d3b
commit 02fafca0ef
2 changed files with 6 additions and 3 deletions

View File

@ -10,6 +10,7 @@
"disallowKeywords": ["with"],
"disallowSpacesInsideObjectBrackets": null,
"disallowImplicitTypeConversion": ["string"],
"disallowMultipleVarDecl": null,
"safeContextKeyword": "_this",

View File

@ -7,7 +7,7 @@ var gulp = require('gulp'),
browserSync = require('browser-sync'),
reload = browserSync.reload;
gulp.task('default', ['docs', 'build']);
gulp.task('default', ['docs', 'build'])
gulp.task('watch', ['default'], function() {
@ -54,14 +54,16 @@ gulp.task('jscs', function() {
.pipe($.jscs());
});
gulp.task('lint', function() {
gulp.task('jshint', function() {
return gulp.src('elements/**/*.js')
.pipe(reload({stream: true, once: true}))
.pipe($.jshint())
.pipe($.jshint('.jshintrc'))
.pipe($.jshint.reporter('jshint-stylish'))
.pipe($.if(!browserSync.active, $.jshint.reporter('fail')));
});
gulp.task('lint', ['jscs', 'jshint']);
gulp.task('css', function() {
return css('elements/**/*.styl', 'elements');