Paladox has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/235536

Change subject: Use npm for jshint
......................................................................

Use npm for jshint

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MwEmbedSupport 
refs/changes/36/235536/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 9c56558..1c93271 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,9 +1,15 @@
 /*jshint node:true */
 module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-jsonlint' );
 
        grunt.initConfig( {
+               jshint: {
+                       all: [
+                               '*.js'
+                       ]
+               },
                banana: {
                        all: 'i18n/'
                },
@@ -15,6 +21,6 @@
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/package.json b/package.json
index 76e8a82..7cf35b6 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
     "grunt": "0.4.5",
     "grunt-cli": "0.1.13",
     "grunt-banana-checker": "0.2.2",
-    "grunt-jsonlint": "1.0.4"
+    "grunt-jsonlint": "1.0.4",
+    "grunt-contrib-jshint": "0.11.2"
   }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/235536
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3ba07ace1ff75bb609798fdaccd1dadd855128c7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MwEmbedSupport
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>

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

Reply via email to