build: Updating npm dependencies

* eslint-config-wikimedia: 0.22.1 → 0.24.0

Resolve newly detected error:
* mediawiki/no-nodelist-unsupported-methods

Change-Id: If43479e88a3d39f507541f3f6b53f23004bd0e1e
This commit is contained in:
Umherirrender 2023-03-25 22:49:04 +01:00 committed by Krinkle
parent 0b151e25dc
commit 4e08e000e0
5 changed files with 429 additions and 539 deletions

View file

@ -10,5 +10,8 @@
},
"parserOptions": {
"ecmaVersion": 9
},
"rules": {
"es-x/no-hashbang": "warn"
}
}

View file

@ -34,12 +34,14 @@
return deferred.promise();
};
// popups require title attributes
document.querySelectorAll( '.mwe-math-element[data-qid] img' )
.forEach( function ( node ) {
[].forEach.call(
document.querySelectorAll( '.mwe-math-element[data-qid] img' ),
function ( node ) {
if ( isValidId( node.parentNode.parentNode.dataset.qid ) ) {
node.dataset.title = 'math-unique-identifier';
}
} );
}
);
module.exports = {
type: previewType,
selector: '.mwe-math-element[data-qid] img',

View file

@ -4,6 +4,7 @@
"wikimedia/server"
],
"rules": {
"max-len": "off"
"max-len": "off",
"es-x/no-hashbang": "warn"
}
}

952
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,7 +17,7 @@
"@wdio/spec-reporter": "7.16.13",
"api-testing": "1.5.0",
"commander": "^9.4.1",
"eslint-config-wikimedia": "0.22.1",
"eslint-config-wikimedia": "0.24.0",
"grunt": "1.5.3",
"grunt-banana-checker": "0.10.0",
"grunt-contrib-watch": "1.1.0",