mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
build: Update eslint-config-wikimedia to 0.28.0
Change-Id: Ie6bcea16debc74d3dd1283f6a4975fb3bd5056b0
This commit is contained in:
parent
2309681e95
commit
bf09928773
|
@ -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 );
|
||||
|
|
|
@ -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
1519
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue