mediawiki-extensions-AJAXPoll/Gruntfile.js
zoranzoki21 15c7b0c3ea build: Drop grunt-jsonlint and eslint-plugin-qunit
- grunt-jsonlint is replaced with grunt-eslint already
- eslint-plugin-qunit is already defined in eslint-config-wikimedia

Change-Id: I31fae687925738adac4ab62fb8650d268cc53efd
2020-09-11 22:28:41 +02:00

32 lines
619 B
JavaScript

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