mediawiki-extensions-AJAXPoll/Gruntfile.js
libraryupgrader 66f8167324 build: Updating eslint-config-wikimedia to 0.18.0
Additional changes:
* Removing manual extensions for eslint.

Change-Id: I90163b8fe1885a4969a74b4b3e1fb29fe1fa57e9
2021-01-27 13:24:33 +00:00

31 lines
583 B
JavaScript

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