mediawiki-extensions-Secure.../Gruntfile.js
Umherirrender 0550fc91f0 build: Use existing eslint also for json linting
Bug: T220036
Change-Id: I5b2aa9b7bde6d12c58f0a88e4c534d2d9f94a487
2020-09-11 23:48:00 +02:00

25 lines
493 B
JavaScript

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