mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-24 06:04:05 +00:00
3a1d878459
* grunt-eslint: 21.0.0 → 22.0.0 * eslint-config-wikimedia: 0.12.0 → 0.15.0 Additional changes: * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I602048eb1a657d67b566f4212b4db91ae76a0627
25 lines
518 B
JavaScript
25 lines
518 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( {
|
|
banana: conf.MessagesDirs,
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js{,on}',
|
|
'!{vendor,node_modules}/**'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|