Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263235
Change subject: Replace package grunt-jscs-checker with grunt-jscs, Update
packages, Add jsonlint test
......................................................................
Replace package grunt-jscs-checker with grunt-jscs, Update packages, Add
jsonlint test
Add grunt-jscs version 2.6.0
Add grunt-jsonlint version 1.0.7
Update grunt-banana-checker to 0.4.0
Change-Id: Ic41c351c880d1f6186448777379ebeaabfbb05c8
---
M Gruntfile.js
M package.json
2 files changed, 13 insertions(+), 4 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/35/263235/1
diff --git a/Gruntfile.js b/Gruntfile.js
index 77a12a0..a23f230 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -8,8 +8,9 @@
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
- grunt.loadNpmTasks( 'grunt-jscs-checker' );
+ grunt.loadNpmTasks( 'grunt-jscs' );
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
@@ -18,6 +19,7 @@
jshintrc: true
},
shared: [
+ '*.js',
'modules/*.js',
'modules/js/*.js',
'gateway_forms/rapidhtml/*/*.js'
@@ -42,10 +44,16 @@
'<%= jshint.gateways %>'
],
tasks: 'test'
+ },
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**'
+ ]
}
} );
- grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'banana' ] );
+ grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'jsonlint', 'banana' ]
);
grunt.registerTask( 'test', [ 'lint' ] );
grunt.registerTask( 'default', 'test' );
};
diff --git a/package.json b/package.json
index 04620ca..3a952c4 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,8 @@
"grunt-cli": "0.1.13",
"grunt-contrib-jshint": "0.11.3",
"grunt-contrib-watch": "0.6.1",
- "grunt-banana-checker": "0.2.2",
- "grunt-jscs-checker": "0.8.1"
+ "grunt-banana-checker": "0.4.0",
+ "grunt-jscs": "2.6.0",
+ "grunt-jsonlint": "1.0.7"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/263235
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic41c351c880d1f6186448777379ebeaabfbb05c8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits