Merge "Update eslint-config-wikimedia to 0.24.0"

This commit is contained in:
jenkins-bot 2023-01-18 15:04:45 +00:00 committed by Gerrit Code Review
commit 9272edcbba
10 changed files with 336 additions and 496 deletions

View file

@ -4,33 +4,7 @@
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki",
"wikimedia/jsduck"
],
"globals": {
"ve": "readonly",
"VisualEditorSupportCheck": "readonly",
"unicodeJS": "readonly",
"RangeFix": "readonly",
"Papa": "readonly"
},
"rules": {
"no-jquery/no-append-html": "error",
"no-jquery/no-deferred": "error",
"no-jquery/no-extend": "error",
"no-jquery/no-html": [
"error",
{
"allowGetOrSet": "get"
}
],
"no-jquery/no-when": "error",
"no-jquery/no-visibility": "error",
"max-len": "off",
"mediawiki/valid-package-file-require": "warn"
},
"settings": {
"polyfills": [
"URL"
]
}
"wikimedia/jsduck",
"./eslint-shared.json"
]
}

View file

@ -0,0 +1,29 @@
{
"globals": {
"ve": "readonly",
"VisualEditorSupportCheck": "readonly",
"unicodeJS": "readonly",
"RangeFix": "readonly",
"Papa": "readonly"
},
"rules": {
"no-jquery/no-append-html": "error",
"no-jquery/no-deferred": "error",
"no-jquery/no-extend": "error",
"no-jquery/no-html": [
"error",
{
"allowGetOrSet": "get"
}
],
"no-jquery/no-when": "error",
"no-jquery/no-visibility": "error",
"max-len": "off",
"mediawiki/valid-package-file-require": "warn"
},
"settings": {
"polyfills": [
"URL"
]
}
}

View file

@ -170,6 +170,7 @@ ve.ui.MWExportTool.static.name = 'export';
ve.ui.MWExportTool.static.displayBothIconAndLabel = !OO.ui.isMobile();
ve.ui.MWExportTool.static.group = 'export';
ve.ui.MWExportTool.static.autoAddToCatchall = false;
// eslint-disable-next-line es-x/no-regexp-prototype-flags
ve.ui.MWExportTool.static.flags = [ 'progressive', 'primary' ];
ve.ui.MWExportTool.static.title =
OO.ui.deferMsg( 'visualeditor-rebase-client-export-start' );

View file

@ -30,6 +30,7 @@
/**
* Object literal
*
* @class ve.dm.MWTemplateParamDescription
* @private
*/

View file

@ -7,6 +7,7 @@
/**
* Object literal
*
* @class ve.dm.MWTransclusionPartInstruction
* @private
*/

View file

@ -1,10 +1,15 @@
{
"root": true,
"extends": [
"wikimedia/client-common",
"wikimedia/language/es2018",
"wikimedia/mediawiki",
"wikimedia/jquery",
"wikimedia/qunit",
"wikimedia/language/es6"
"../../eslint-shared.json"
],
"globals": {
"sinon": false
"sinon": "readonly"
},
"rules": {
"compat/compat": [ "error", "last 2 chrome versions, last 2 firefox versions" ],

View file

@ -34,6 +34,7 @@ OO.inheritClass( ve.ui.MWSaveTool, ve.ui.Tool );
/* Static properties */
ve.ui.MWSaveTool.static.name = 'showSave';
// eslint-disable-next-line es-x/no-regexp-prototype-flags
ve.ui.MWSaveTool.static.flags = [ 'primary', 'progressive' ];
ve.ui.MWSaveTool.static.displayBothIconAndLabel = true;
ve.ui.MWSaveTool.static.group = 'save';

View file

@ -71,11 +71,11 @@ ve.ui.MWTemplateTitleInputWidget.prototype.getApiParams = function ( query ) {
// character.
var endsWithAlpha;
try {
// TODO: Convert to literal when IE11 compatibility was dropped
// eslint-disable-next-line prefer-regex-literals
// eslint-disable-next-line es-x/no-regexp-u-flag, es-x/no-regexp-unicode-property-escapes, prefer-regex-literals
endsWithAlpha = new RegExp( '[0-9a-z\\p{L}\\p{N}]$', 'iu' );
} catch ( e ) {
// TODO: Remove when IE11 compatibility was dropped
// Support: IE, Chrome <= 49, FF <= 45, Safari <= 9.1
// See https://caniuse.com/mdn-javascript_builtins_regexp_unicode
endsWithAlpha = /[0-9a-z\xC0-\uFFFF]$/i;
}
if ( endsWithAlpha.test( params.gsrsearch ) ) {

750
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -20,7 +20,7 @@
"@wdio/local-runner": "7.16.13",
"@wdio/mocha-framework": "7.16.13",
"@wdio/spec-reporter": "7.16.13",
"eslint-config-wikimedia": "0.22.1",
"eslint-config-wikimedia": "0.24.0",
"grunt": "1.5.3",
"grunt-banana-checker": "0.10.0",
"grunt-contrib-copy": "1.0.0",