diff options
Diffstat (limited to 'MLEB/LocalisationUpdate/Gruntfile.js')
-rw-r--r-- | MLEB/LocalisationUpdate/Gruntfile.js | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/MLEB/LocalisationUpdate/Gruntfile.js b/MLEB/LocalisationUpdate/Gruntfile.js index 26ca0c16..61875ba3 100644 --- a/MLEB/LocalisationUpdate/Gruntfile.js +++ b/MLEB/LocalisationUpdate/Gruntfile.js @@ -1,28 +1,24 @@ -/*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: { - all: [ - '**/*.js', - '!node_modules/**', - '!vendor/**' - ] - }, - jsonlint: { + eslint: { + options: { + extensions: [ '.js', '.json' ], + cache: true + }, all: [ - '**/*.json', - '!node_modules/**', - '!vendor/**' + '**/*.js{,on}', + '!{vendor,node_modules}/**' ] } } ); - grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] ); + grunt.registerTask( 'test', [ 'eslint', 'banana' ] ); grunt.registerTask( 'default', 'test' ); }; |