X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=Gruntfile.js;h=f3950f6f505f836e42fd3495b525259e7efa9c2e;hp=fbb93bfb6e2716ed8009586b2531d79550206cbd;hb=7c821908c4f2b69bfd913037ea9e49756624dc73;hpb=8445510fbe64c5125ce85e544855b29a576b0282 diff --git a/Gruntfile.js b/Gruntfile.js index fbb93bfb6e..f3950f6f50 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,6 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-contrib-copy' ); grunt.loadNpmTasks( 'grunt-eslint' ); - grunt.loadNpmTasks( 'grunt-jsonlint' ); grunt.loadNpmTasks( 'grunt-karma' ); grunt.loadNpmTasks( 'grunt-stylelint' ); grunt.loadNpmTasks( 'grunt-svgmin' ); @@ -23,10 +22,11 @@ module.exports = function ( grunt ) { eslint: { options: { reportUnusedDisableDirectives: true, + extensions: [ '.js', '.json' ], cache: true }, all: [ - '**/*.js', + '**/*.js{,on}', '!docs/**', '!node_modules/**', '!resources/lib/**', @@ -36,18 +36,13 @@ module.exports = function ( grunt ) { '!tests/coverage/**', '!vendor/**', // Explicitly say "**/*.js" here in case of symlinks - '!extensions/**/*.js', - '!skins/**/*.js' - ] - }, - jsonlint: { - all: [ - '**/*.json', - '!{docs/js,extensions,node_modules,skins,vendor}/**' + '!extensions/**/*.js{,on}', + '!skins/**/*.js{,on}' ] }, banana: { options: { + requireLowerCase: false, disallowBlankTranslations: false }, core: 'languages/i18n/',