Legoktm has uploaded a new change for review.

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

Change subject: build: Adding configuration for jsonlint
......................................................................

build: Adding configuration for jsonlint

Change-Id: Icfd0ee12479aaaa6abfefe33674f257b7877d955
---
M Gruntfile.js
M package.json
2 files changed, 12 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Citoid 
refs/changes/72/217772/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 7fb9c36..1ee8d13 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,6 +6,7 @@
 
 /*jshint node:true */
 module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-contrib-csslint' );
        grunt.loadNpmTasks( 'grunt-contrib-jshint' );
@@ -34,9 +35,16 @@
                                '<%= jshint.all %>'
                        ],
                        tasks: 'test'
-               }
+               },
+               jsonlint: {
+                all: [
+                    '**/*.json',
+                    '!node_modules/**'
+                ]
+            }
+    
        } );
 
-       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'banana' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] 
);
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/package.json b/package.json
index ad605c0..5eb2161 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
     "grunt-contrib-csslint": "0.4.0",
     "grunt-contrib-jshint": "0.11.2",
     "grunt-contrib-watch": "0.6.1",
-    "grunt-jscs": "1.8.0"
+    "grunt-jscs": "1.8.0",
+    "grunt-jsonlint": "1.0.4"
   }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icfd0ee12479aaaa6abfefe33674f257b7877d955
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Citoid
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to