mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-30 18:04:15 +00:00
7b03ba5e33
* stylelint-config-wikimedia: 0.6.0 → 0.8.0 * eslint-config-wikimedia: 0.12.0 → 0.15.0 * grunt-eslint: 21.0.0 → 22.0.0 * grunt-stylelint: 0.11.1 → 0.13.0 Additional changes: * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I77f1ff242f95cbc85013d0ae96ddf0d70c1c8cd5
33 lines
614 B
JavaScript
33 lines
614 B
JavaScript
/* eslint-env node */
|
|
module.exports = function ( grunt ) {
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js{,on}',
|
|
'!{lib,vendor,node_modules}/**'
|
|
]
|
|
},
|
|
banana: {
|
|
all: 'i18n/'
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'**/*.css',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|