mediawiki-extensions-Replac.../Gruntfile.js
libraryupgrader efb62c28a2 build: Updating npm dependencies
* eslint-config-wikimedia: 0.5.0 → 0.15.0
* grunt-eslint: 20.1.0 → 22.0.0

Additional changes:
* Added .eslintcache to .gitignore.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: If786c6664f05a9b8d9db26e120ced522fd248422
2020-01-08 04:58:45 +00:00

39 lines
736 B
JavaScript

/* eslint-env node */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: '.'
},
stylelint: {
options: {
syntax: 'less'
},
all: [
'**/*.{css,less}',
'!vendor/**'
]
},
banana: conf.MessagesDirs,
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};