mediawiki-extensions-CodeMi.../Gruntfile.js
James D. Forrester fdbf91ddeb build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: I72ecf30d45b6488971051140290e552094bc369f
2019-05-06 15:29:44 -07:00

36 lines
713 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: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js{,on}',
'!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' );
};