mediawiki-extensions-CodeMi.../Gruntfile.js
Ed Sanders 4d8cca6473 build: Update linters
Change-Id: Icb1da99172253d5ccb7064885285dbb268e20fd3
2019-11-15 16:20:25 +00:00

35 lines
674 B
JavaScript

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