Skip to content

Commit

Permalink
Added jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaworsw committed May 26, 2014
1 parent 5c8bb4e commit fd71171
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .jshintrc
@@ -0,0 +1,14 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"boss": true,
"eqnull": true,
"globals": {

}
}
10 changes: 10 additions & 0 deletions gulpfile.js
Expand Up @@ -561,6 +561,16 @@ gulp.task('testsite', ['watch'], function() {

});

gulp.task('lint', function() {
gulp.src(paths.scripts.core)
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});

gulp.task('watch:lint', ['lint'], function() {
gulp.watch(paths.scripts.core, ['lint']);
});

// The default task (called when you run `gulp` from cli)
gulp.task('default', ['templates', 'scripts', 'styles', 'refreshWeb']);

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -21,6 +21,7 @@
"gulp-rename": "*",
"gulp-uglify": "*",
"gulp-wrap-umd": "^0.2.0",
"jshint-stylish": "0.1.5",
"node-static": "*",
"run-sequence": "*"
}
Expand Down

0 comments on commit fd71171

Please sign in to comment.