'use strict'; module.exports = function ( grunt ) { const conf = grunt.file.readJSON( 'extension.json' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.loadNpmTasks( 'grunt-stylelint' ); grunt.initConfig( { banana: conf.MessagesDirs, stylelint: { all: [ '**/*.{css,less}', '!{vendor,node_modules,modules/ve-math/tools/node_modules}/**' ] }, watch: { files: [ '.{stylelintrc,eslintrc}.json', '<%= eslint.all %>', '<%= stylelint.all %>' ], tasks: 'test' }, eslint: { options: { cache: true, fix: grunt.option( 'fix' ) }, all: [ '.' ] } } ); grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] ); grunt.registerTask( 'default', 'test' ); };