mediawiki-extensions-SpamBl.../Gruntfile.js
James D. Forrester 0a9903293d build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I9415c7962bc5b03c12bc8174bffc601ce60e489e
2019-04-03 16:25:25 -07:00

40 lines
724 B
JavaScript

/*!
* Grunt file
*
* @package SpamBlacklist
*/
/* 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.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
banana: conf.MessagesDirs,
eslint: {
options: {
reportUnusedDisableDirectives: true,
cache: true
},
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};