mediawiki-extensions-Plugga.../Gruntfile.js
Umherirrender 04fa9bc394 build: Replace jsonlint with eslint
Bug: T220036
Change-Id: I1ab9a52b792d1ce623ec197e0b1b4aaa2f89347c
2021-02-21 10:10:43 +01:00

25 行
443 B
JavaScript

/* eslint-env node, es6 */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
banana: {
all: 'i18n/'
},
eslint: {
options: {
cache: true
},
all: [
'**/*.{js,json}',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};