mediawiki-extensions-Templa.../Gruntfile.js
Umherirrender f67fbc1394 build: Use existing eslint also for json linting
Bug: T220036
Change-Id: I7e9c43ea56366785b8cb94c9c6863b87841a6135
2020-09-11 23:49:03 +02:00

25 lines
443 B
JavaScript

/* eslint-env node, es6 */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: [
'**/*.{js,json}',
'!node_modules/**',
'!vendor/**'
]
},
banana: {
all: 'i18n/'
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};