Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit c2a7f2b

Browse files
author
Zeno Rocha
committed
Add JSHint task using Gulp
1 parent 882ea77 commit c2a7f2b

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.jshintrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"globalstrict": true,
3+
"predef": ["chrome", "document"]
4+
}

gulpfile.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var gulp = require('gulp');
2+
var jshint = require('gulp-jshint');
3+
var stylish = require('jshint-stylish');
4+
5+
gulp.task('lint', function() {
6+
return gulp.src('./js/*.js')
7+
.pipe(jshint())
8+
.pipe(jshint.reporter(stylish));
9+
});

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"private": true,
3+
"devDependencies": {
4+
"gulp": "~3.6.2",
5+
"gulp-jshint": "~1.6.1",
6+
"jshint-stylish": "~0.2.0"
7+
}
8+
}

0 commit comments

Comments
 (0)