summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UserMerge/Gruntfile.js')
-rw-r--r--UserMerge/Gruntfile.js30
1 files changed, 13 insertions, 17 deletions
diff --git a/UserMerge/Gruntfile.js b/UserMerge/Gruntfile.js
index c07280d8..a40e8ab4 100644
--- a/UserMerge/Gruntfile.js
+++ b/UserMerge/Gruntfile.js
@@ -4,31 +4,27 @@
* @package UserMerge
*/
-/*jshint node:true */
+/* eslint-env node, es6 */
module.exports = function ( grunt ) {
+ var conf = grunt.file.readJSON( 'extension.json' );
+
grunt.loadNpmTasks( 'grunt-banana-checker' );
- grunt.loadNpmTasks( 'grunt-jsonlint' );
- grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-eslint' );
- var conf = grunt.file.readJSON( 'extension.json' );
grunt.initConfig( {
- banana: conf.MessagesDirs,
- jshint: {
+ eslint: {
+ options: {
+ extensions: [ '.js', '.json' ],
+ cache: true
+ },
all: [
- '**/*.js',
- '!node_modules/**',
- '!vendor/**'
+ '**/*.js{,on}',
+ '!{vendor,node_modules}/**'
]
},
- jsonlint: {
- all: [
- '**/*.json',
- '!node_modules/**',
- '!vendor/**'
- ]
- }
+ banana: conf.MessagesDirs
} );
- grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
+ grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};