mediawiki-extensions-Templa.../Gruntfile.js
libraryupgrader 72135b1202 build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

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

Change-Id: Id9175e29c906b3e40cbd58e13ab148bd72bcca66
2019-08-23 06:34:52 +00:00

35 lines
636 B
JavaScript

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