mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-14 19:36:00 +00:00
7e8f3a2541
* grunt-eslint: 21.0.0 → 22.0.0 * 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 Additional changes: * Added .eslintcache to .gitignore. * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I1e2f587f356bea03737d30129477a6b2bfaf4796
25 lines
518 B
JavaScript
25 lines
518 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( {
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js{,on}',
|
|
'!{vendor,node_modules}/**'
|
|
]
|
|
},
|
|
banana: conf.MessagesDirs
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|