Hashar has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/349693 )
Change subject: build: add grunt-contrib-jshint
......................................................................
build: add grunt-contrib-jshint
See T119973
Change-Id: Iebbe3b49435b217919f8468e07ffe2a2e514dfc1
---
M Gruntfile.js
M package.json
2 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Sudo
refs/changes/93/349693/1
diff --git a/Gruntfile.js b/Gruntfile.js
index a45071e..2db815f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,11 +1,19 @@
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
banana: {
all: 'i18n/'
+ },
+ jshint: {
+ all: [
+ '**/*.js',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
},
jsonlint: {
all: [
@@ -16,6 +24,6 @@
}
} );
- grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
grunt.registerTask( 'default', 'test' );
};
diff --git a/package.json b/package.json
index bcf5b13..e87548c 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
"devDependencies": {
"grunt": "1.0.1",
"grunt-banana-checker": "0.5.0",
+ "grunt-contrib-jshint": "1.1.0",
"grunt-jsonlint": "1.1.0"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/349693
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iebbe3b49435b217919f8468e07ffe2a2e514dfc1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Sudo
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits