Legoktm has uploaded a new change for review.

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

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

build: Adding configuration for jsonlint

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks 
refs/changes/86/217786/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 671c76b..0f76c86 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -9,6 +9,7 @@
        grunt.loadNpmTasks( 'grunt-contrib-csslint' );
        grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-contrib-watch' );
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-jscs' );
 
@@ -42,10 +43,16 @@
                                '<%= csslint.all %>'
                        ],
                        tasks: 'test'
+               },
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**'
+                       ]
                }
        } );
 
-       grunt.registerTask( 'lint', [ 'jscs', 'jshint', 'csslint', 'banana' ] );
+       grunt.registerTask( 'lint', [ 'jscs', 'jshint', 'csslint', 'jsonlint', 
'banana' ] );
        grunt.registerTask( 'test', 'lint' );
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/package.json b/package.json
index aba9379..2ad4a1e 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
     "grunt-contrib-watch": "0.6.1",
     "grunt-banana-checker": "0.2.2",
     "grunt-jscs": "1.8.0",
-    "jshint": "2.8.0"
+    "jshint": "2.8.0",
+    "grunt-jsonlint": "1.0.4"
   }
 }

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

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