mediawiki-extensions-Replac.../Gruntfile.js
Umherirrender d29dfaf188 build: Remove syntax option from stylelint
Error: The "syntax" option is no longer available. You should install an
appropriate syntax, e.g. postcss-scss, and use the "customSyntax" option

Change-Id: I43a39d8238143e02e9ba3ba2ee3652a63d3d6921
2022-10-27 00:13:14 +02:00

28 lines
552 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: {
cache: true
},
all: '.'
},
stylelint: {
all: [
'**/*.{css,less}',
'!vendor/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};