build: Update eslint-config-wikimedia to 0.28.0

Change-Id: Ie6bcea16debc74d3dd1283f6a4975fb3bd5056b0
This commit is contained in:
Ed Sanders 2024-06-03 18:37:15 +01:00
parent 2309681e95
commit bf09928773
4 changed files with 804 additions and 719 deletions

View file

@ -294,7 +294,6 @@ Parser.prototype.getTimestampParser = function ( contLangVariant, format, digits
function untransformDigits( text ) {
return Number( digits ? text.replace(
// digits list comes from site config so is trusted
// eslint-disable-next-line security/detect-non-literal-regexp
new RegExp( '[' + digits.join( '' ) + ']', 'g' ),
( m ) => digits.indexOf( m )
) : text );

View file

@ -393,7 +393,6 @@ function getTitleFromUrl( url ) {
}
// wgArticlePath is site config so is trusted
// eslint-disable-next-line security/detect-non-literal-regexp
const articlePathRegexp = new RegExp(
mw.util.escapeRegExp( mw.config.get( 'wgArticlePath' ) )
.replace( '\\$1', '(.*)' )

1519
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.27.0",
"eslint-config-wikimedia": "0.28.0",
"grunt": "1.6.1",
"grunt-banana-checker": "0.13.0",
"grunt-eslint": "24.3.0",