mediawiki-extensions-Interwiki/Gruntfile.js
libraryupgrader 699693046f build: Updating npm dependencies
* eslint-config-wikimedia: 0.12.0 → 0.15.0
* grunt-stylelint: 0.11.1 → 0.13.0
* grunt-eslint: 21.0.0 → 22.0.0
* stylelint-config-wikimedia: 0.6.0 → 0.8.0

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: If0d6eaa4cb5514995db0407d68fe4599b69b1a95
2020-01-09 15:46:46 +00:00

33 lines
665 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.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js{,on}',
'!{vendor,node_modules}/**'
]
},
banana: conf.MessagesDirs,
stylelint: {
all: [
'**/*.css',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};