Hashar has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/349513 )

Change subject: build: add grunt-contrib-jshint
......................................................................

build: add grunt-contrib-jshint

See T119973

Change-Id: I6f8ae62ceedf30e8e48a3bed62c10d51279c7c71
---
M Gruntfile.js
M package.json
2 files changed, 11 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FundraisingEmailUnsubscribe
 refs/changes/13/349513/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 7756e75..d14c698 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,11 +1,19 @@
 /*jshint node:true */
 module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
 
        grunt.initConfig( {
                banana: {
                        all: 'i18n/'
+               },
+               jshint: {
+                       all: [
+                               '**/*.js',
+                               '!node_modules/**',
+                               '!vendor/**'
+                       ]
                },
                jsonlint: {
                        all: [
@@ -15,6 +23,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 41cecca..e7b25ef 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,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/349513
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f8ae62ceedf30e8e48a3bed62c10d51279c7c71
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FundraisingEmailUnsubscribe
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to