mediawiki-extensions-Linter/Gruntfile.js
libraryupgrader e957883fba build: Updating npm dependencies
* eslint-config-wikimedia: 0.14.3 → 0.15.0
* grunt-eslint: 21.0.0 → 22.0.0

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I5c7c448c66f5c89d4d541c39b70c618f4e9b2903
2020-01-07 02:58:57 +00:00

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