mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 16:24:12 +00:00
65f34763f3
* https://npmjs.com/advisories/577 (CVE-2018-3721) * https://npmjs.com/advisories/745 * https://npmjs.com/advisories/782 (CVE-2018-16487) * https://npmjs.com/advisories/788 * https://npmjs.com/advisories/813 * https://npmjs.com/advisories/1065 (CVE-2019-10744) * https://npmjs.com/advisories/1523 (CVE-2019-10744) Additional changes: * Replaced "jakub-onderka" packages with "php-parallel-lint". * Committed package-lock.json (T179229) too. * And updating CoC link to use Special:MyLanguage (T202047). * Also sorted "composer fix" command to run phpcbf last. * Set `root: true` in .eslintrc.json (T206485). * Enable eslint caching. Change-Id: Iafc6d676f6785fad83e82657ea8f6bf083d83e34
45 lines
764 B
JavaScript
45 lines
764 B
JavaScript
/* eslint-env node */
|
|
module.exports = function ( grunt ) {
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'**/*.css',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
},
|
|
banana: {
|
|
all: [
|
|
'i18n/',
|
|
'**/i18n/'
|
|
]
|
|
},
|
|
jsonlint: {
|
|
all: [
|
|
'*.json',
|
|
'**/*.json',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|