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"], "disallowKeywords": ["with"],
"disallowSpacesInsideObjectBrackets": null, "disallowSpacesInsideObjectBrackets": null,
"disallowImplicitTypeConversion": ["string"], "disallowImplicitTypeConversion": ["string"],
"disallowMultipleVarDecl": null,
"safeContextKeyword": "_this", "safeContextKeyword": "_this",

View File

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