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

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I77f1ff242f95cbc85013d0ae96ddf0d70c1c8cd5
2020-01-09 15:27:49 +00:00

33 lines
614 B
JavaScript

/* eslint-env node */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js{,on}',
'!{lib,vendor,node_modules}/**'
]
},
banana: {
all: 'i18n/'
},
stylelint: {
all: [
'**/*.css',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};