mediawiki-extensions-OATHAuth/Gruntfile.js
Kunal Mehta 0af536bbab build: Remove duplicate eslintignore info from Gruntfile.js
This is already in .eslintignore. Also we don't need to ignore
node_modules/, that's already done by default.

Change-Id: I8c03515cf7d3dab11555f4c4b7f5f2d11aa49a2a
2019-07-15 22:08:27 -04:00

30 lines
645 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-stylelint' );
grunt.initConfig( {
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: '.'
},
stylelint: {
all: [
'**/*.css',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};