jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/349687 )
Change subject: build: add grunt-contrib-jshint ...................................................................... build: add grunt-contrib-jshint See T119973 Change-Id: If8ab371645148b932cf95af043ef0ea5b90db9cb --- M Gruntfile.js M package.json 2 files changed, 11 insertions(+), 2 deletions(-) Approvals: jenkins-bot: Verified Jforrester: Looks good to me, approved diff --git a/Gruntfile.js b/Gruntfile.js index fdc272b..37319b1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -8,10 +8,18 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.loadNpmTasks( 'grunt-contrib-jshint' ); var conf = grunt.file.readJSON( 'extension.json' ); grunt.initConfig( { banana: conf.MessagesDirs, + jshint: { + all: [ + '**/*.js', + '!node_modules/**', + '!vendor/**' + ] + }, jsonlint: { all: [ '**/*.json', @@ -20,6 +28,6 @@ } } ); - grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] ); + grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] ); grunt.registerTask( 'default', 'test' ); }; diff --git a/package.json b/package.json index c7f7f28..671263b 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,9 @@ }, "devDependencies": { "grunt": "0.4.5", - "grunt-cli": "0.1.13", "grunt-banana-checker": "0.4.0", + "grunt-cli": "0.1.13", + "grunt-contrib-jshint": "1.1.0", "grunt-jsonlint": "1.0.7" } } -- To view, visit https://gerrit.wikimedia.org/r/349687 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If8ab371645148b932cf95af043ef0ea5b90db9cb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SpamBlacklist Gerrit-Branch: master Gerrit-Owner: Hashar <has...@free.fr> Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits