mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-24 07:04:04 +00:00
e39c731368
* 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: If910b266ebd5d3aa1e485c6740b672eb44f82345
31 lines
570 B
JavaScript
31 lines
570 B
JavaScript
/*!
|
|
* Grunt file
|
|
*
|
|
* @package SpamBlacklist
|
|
*/
|
|
|
|
/* 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' );
|
|
};
|