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