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

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

build: add grunt-contrib-jshint

See T119973

Change-Id: Ic79e8bcc90b08d3d38c6448ff028b9f6f36a5ced
---
M Gruntfile.js
M package.json
2 files changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth 
refs/changes/08/349508/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 0ce27d0..d42eed8 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -2,11 +2,19 @@
 module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-stylelint' );
 
        grunt.initConfig( {
                banana: {
                        all: 'i18n/'
+               },
+               jshint: {
+                       all: [
+                               '**/*.js',
+                               '!node_modules/**',
+                               '!vendor/**'
+                       ]
                },
                jsonlint: {
                        all: [
@@ -23,6 +31,6 @@
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'stylelint' ] );
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint', 
'stylelint' ] );
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/package.json b/package.json
index c2f2f53..359909b 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
   "devDependencies": {
     "grunt": "1.0.1",
     "grunt-banana-checker": "0.4.0",
+    "grunt-contrib-jshint": "1.1.0",
     "grunt-jsonlint": "1.0.7",
     "grunt-stylelint": "0.6.0",
     "stylelint-config-wikimedia": "0.4.1"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic79e8bcc90b08d3d38c6448ff028b9f6f36a5ced
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
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