Files
mediawiki-extensions-Univer…/Gruntfile.js
Umherirrender 7f8afc6d17 build: Remove customSyntax option from stylelint in Gruntfile.js
Already part of the stylelint-config-wikimedia

Change-Id: I5b98000b86ae961eaaff6bd8a5e7c2dca9032161
2022-10-31 13:15:30 +00:00

35 lines
643 B
JavaScript

'use strict';
module.exports = function ( grunt ) {
const conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
cache: true,
fix: grunt.option( 'fix' )
},
all: [
'.'
]
},
stylelint: {
src: [
'**/*.css',
'**/*.less',
'!lib/**',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', [ 'test' ] );
};