mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-24 00:04:35 +00:00
7025be47c1
composer: * mediawiki/mediawiki-codesniffer: 28.0.0 → 29.0.0 The following sniffs are failing and were disabled: * MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate npm: * eslint-config-wikimedia: 0.12.0 → 0.15.0 * grunt-eslint: 21.0.0 → 22.0.0 Additional changes: * Also sorted "composer fix" command to run phpcbf last. * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I351f0a333fd5f06e47f0748aa25cb3fff63cc67f
24 lines
517 B
JavaScript
24 lines
517 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.initConfig( {
|
|
banana: conf.MessagesDirs,
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js{,on}',
|
|
'!{vendor,node_modules}/**'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|