Hashar has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/349636 )
Change subject: build: add grunt-contrib-jshint ...................................................................... build: add grunt-contrib-jshint See T119973 Change-Id: Idf059fac107a66d82fd91424ec69050e4cdbaf1f --- M Gruntfile.js M package.json 2 files changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SpellingApi refs/changes/36/349636/1 diff --git a/Gruntfile.js b/Gruntfile.js index ae4e6d7..8b29d00 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,9 +1,17 @@ /* eslint-env node */ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.loadNpmTasks( 'grunt-contrib-jshint' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.initConfig( { + jshint: { + all: [ + '**/*.js', + '!node_modules/**', + '!vendor/**' + ] + }, jsonlint: { all: [ '*.json', @@ -16,6 +24,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 31cfda5..d076183 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "devDependencies": { "grunt": "1.0.1", "grunt-banana-checker": "0.5.0", + "grunt-contrib-jshint": "1.1.0", "grunt-jsonlint": "1.1.0" } } -- To view, visit https://gerrit.wikimedia.org/r/349636 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idf059fac107a66d82fd91424ec69050e4cdbaf1f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SpellingApi Gerrit-Branch: master Gerrit-Owner: Hashar <has...@free.fr> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits