mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
update linting
This commit is contained in:
parent
82e4922d3b
commit
02fafca0ef
1
.jscsrc
1
.jscsrc
@ -10,6 +10,7 @@
|
||||
"disallowKeywords": ["with"],
|
||||
"disallowSpacesInsideObjectBrackets": null,
|
||||
"disallowImplicitTypeConversion": ["string"],
|
||||
"disallowMultipleVarDecl": null,
|
||||
|
||||
"safeContextKeyword": "_this",
|
||||
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user