Skip to content

Commit a45980c

Browse files
committed
Use grunt-contrib-jshint
1 parent f5937d0 commit a45980c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Gruntfile.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = function(grunt) {
77
all: ['test/**/*.js']
88
},
99
lint: {
10-
files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
10+
files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
1111
},
1212
watch: {
1313
files: '<%= lint.files %>',
@@ -25,15 +25,17 @@ module.exports = function(grunt) {
2525
undef: true,
2626
boss: true,
2727
eqnull: true,
28-
node: true
28+
node: true,
29+
globals: {
30+
exports: true
31+
}
2932
},
30-
globals: {
31-
exports: true
32-
}
33+
all: '<%= lint.files %>'
3334
}
3435
});
3536

3637
grunt.loadNpmTasks('grunt-contrib-nodeunit');
38+
grunt.loadNpmTasks('grunt-contrib-jshint');
3739
// Default task.
3840
grunt.registerTask('default', 'nodeunit');
3941

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"devDependencies": {
3232
"grunt": "^0.4.5",
33+
"grunt-contrib-jshint": "^0.11.2",
3334
"grunt-contrib-nodeunit": "^0.4.1"
3435
},
3536
"keywords": []

0 commit comments

Comments
 (0)