mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-30 19:15:21 +00:00
e948bf3b51
* eslint-config-wikimedia: 0.12.0 → 0.15.0 The following rules are failing and were disabled: * brace-style * camelcase * eqeqeq * max-len * max-statements-per-line * new-cap * no-alert * no-console * no-constant-condition * no-dupe-keys * no-empty * no-implicit-globals * no-jquery/no-global-selector * no-mixed-spaces-and-tabs * no-redeclare * no-tabs * no-undef * no-underscore-dangle * no-unused-vars * no-use-before-define * no-useless-concat * one-var * valid-jsdoc * vars-on-top * grunt-eslint: 21.0.0 → 22.0.0 Additional changes: * Added .eslintcache to .gitignore. * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I3a57a2cc46f83ef5792e02e2c2a842dd833d008a
31 lines
572 B
JavaScript
31 lines
572 B
JavaScript
/*!
|
|
* Grunt file
|
|
*
|
|
* @package ParserFunctions
|
|
*/
|
|
|
|
/* 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' );
|
|
};
|