X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=Gruntfile.js;h=f3950f6f505f836e42fd3495b525259e7efa9c2e;hp=25928156597866231f57e9440dc2a99707d9f46b;hb=be07389e2af93d584594e8ac8c41040ab0d752e5;hpb=f0d9768b4e9f13fe75a22800471cb5543931a066 diff --git a/Gruntfile.js b/Gruntfile.js index 2592815659..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' ); @@ -22,10 +21,12 @@ module.exports = function ( grunt ) { grunt.initConfig( { eslint: { options: { - reportUnusedDisableDirectives: true + reportUnusedDisableDirectives: true, + extensions: [ '.js', '.json' ], + cache: true }, all: [ - '**/*.js', + '**/*.js{,on}', '!docs/**', '!node_modules/**', '!resources/lib/**', @@ -35,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/',