mediawiki-extensions-PageIm.../Gruntfile.js
Antoine Musso 68f89b28b5 build: add grunt-contrib-jshint
See T119973

Change-Id: I6103daa04d2e51de8e29135578be457252771c94
2017-04-21 18:24:03 +02:00

29 lines
530 B
JavaScript

/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.initConfig( {
banana: {
all: 'i18n/'
},
jshint: {
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
grunt.registerTask( 'default', 'test' );
};