build: Update linters

Change-Id: Icc5076d5cf757e7e70511c2b75a82b0a45cb47c9
This commit is contained in:
Ed Sanders 2022-03-17 22:19:08 +00:00
parent 0e5f0d7aad
commit 3892280f1d
7 changed files with 893 additions and 3541 deletions

View file

@ -1,11 +1,6 @@
{
"root": true,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"no-jquery/no-global-selector": "off"
}
"wikimedia/server"
]
}

View file

@ -1,6 +1,7 @@
/* eslint-env node, es6 */
'use strict';
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
const conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );

11
modules/.eslintrc.json Normal file
View file

@ -0,0 +1,11 @@
{
"root": true,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"no-jquery/no-global-selector": "off"
}
}

View file

@ -14,7 +14,7 @@
* @this HTMLElement
* @param {jQuery.Event} e The event fired when the function is called
*/
function doExprSubmit() {
function doExprSubmit( e ) {
var expr = $( '#wpFilterRules' ).val(),
api = new mw.Api();
$( this ).injectSpinner( { id: 'abusefilter-expr', size: 'large' } );
@ -50,7 +50,7 @@
.removeClass( 'mw-abusefilter-tools-error' )
.show();
} );
return false;
e.preventDefault();
}
/**

View file

@ -1,5 +1,5 @@
{
"globals": {
"ve": true
"ve": "readonly"
}
}

4397
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,9 +17,9 @@
"eslint-config-wikimedia": "0.22.1",
"grunt": "1.4.1",
"grunt-banana-checker": "0.9.0",
"grunt-eslint": "23.0.0",
"grunt-stylelint": "0.16.0",
"stylelint-config-wikimedia": "0.11.1",
"grunt-eslint": "24.0.0",
"grunt-stylelint": "0.17.0",
"stylelint-config-wikimedia": "0.12.2",
"wdio-mediawiki": "1.2.0",
"webdriverio": "7.4.6"
}