mediawiki-extensions-RSS/Gruntfile.js
zoranzoki21 dce083ed33 build: Replace jshint/jsonlint with eslint
Bug: TT195542
Change-Id: Ica7b0a1ac532bf39868edce1cdba2e73fd55c6a9
2020-03-15 11:06:39 +01:00

25 lines
505 B
JavaScript

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