jenkins-bot has submitted this change and it was merged. Change subject: build: Adding configuration for jsonlint ......................................................................
build: Adding configuration for jsonlint Change-Id: I9a927b554a3489e71316622196eae417a5d2c1fa --- M Gruntfile.js M package.json 2 files changed, 10 insertions(+), 2 deletions(-) Approvals: Jforrester: Looks good to me, approved jenkins-bot: Verified diff --git a/Gruntfile.js b/Gruntfile.js index ab44956..de137b5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -6,13 +6,20 @@ /*jshint node:true */ module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-jsonlint' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.initConfig( { banana: { all: ["i18n/"] + }, + jsonlint: { + all: [ + '**/*.json', + '!node_modules/**' + ] } } ); - grunt.registerTask( 'test', [ 'banana' ] ); + grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] ); grunt.registerTask( 'default', 'test' ); }; diff --git a/package.json b/package.json index 7a639b7..f4b2e3e 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "devDependencies": { "grunt": "0.4.5", "grunt-cli": "0.1.13", - "grunt-banana-checker": "0.2.2" + "grunt-banana-checker": "0.2.2", + "grunt-jsonlint": "1.0.4" } } -- To view, visit https://gerrit.wikimedia.org/r/217777 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9a927b554a3489e71316622196eae417a5d2c1fa Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/CiteThisPage Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> 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