mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-23 22:46:17 +00:00
66f8167324
Additional changes: * Removing manual extensions for eslint. Change-Id: I90163b8fe1885a4969a74b4b3e1fb29fe1fa57e9
31 lines
583 B
JavaScript
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' );
|
|
};
|