mediawiki-extensions-AJAXPoll/Gruntfile.js
libraryupgrader e25d243a85 build: Updating lodash to 4.17.15
* https://npmjs.com/advisories/1065
* CVE-2019-10744

Additional changes:
* Enable eslint caching.
* Enable eslint's reportUnusedDisableDirectives.

Change-Id: I2be44c82d8534ba4ceb4fd1b1e1dff99f9dfa1b3
2019-08-01 07:04:23 +00:00

40 lines
762 B
JavaScript

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