Add jshint to npm

Add jshint to gruntfile.js

Change-Id: I1b741215dd04db9dded330dbbd3ba901e20566d1
This commit is contained in:
paladox
2015-08-02 17:22:31 +00:00
committed by Hashar
parent 4a14ba325f
commit b436eab7af
2 changed files with 11 additions and 1 deletions

View File

@@ -1,10 +1,19 @@
/*jshint node:true */
module.exports = function ( grunt ) {
'use strict';
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
jshint: {
options: {
jshintrc: true
},
all: [
'*.js'
]
},
banana: {
all: 'i18n/'
},
@@ -16,6 +25,6 @@ module.exports = function ( grunt ) {
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};