mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
build: Update linters
Change-Id: Icc5076d5cf757e7e70511c2b75a82b0a45cb47c9
This commit is contained in:
parent
0e5f0d7aad
commit
3892280f1d
|
@ -1,11 +1,6 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es5",
|
||||
"wikimedia/jquery",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"rules": {
|
||||
"no-jquery/no-global-selector": "off"
|
||||
}
|
||||
"wikimedia/server"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
11
modules/.eslintrc.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es5",
|
||||
"wikimedia/jquery",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"rules": {
|
||||
"no-jquery/no-global-selector": "off"
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"globals": {
|
||||
"ve": true
|
||||
"ve": "readonly"
|
||||
}
|
||||
}
|
||||
|
|
4397
package-lock.json
generated
4397
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue