mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Remove/update some ESLint exclusions
Change-Id: Icd4c2d968e2b445a54709368de056373a7814919
This commit is contained in:
parent
d09d5765e3
commit
8a08a88f66
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -226,7 +226,7 @@ function registerChangeListeners(
|
|||
mw.user,
|
||||
userSettings,
|
||||
mw.config,
|
||||
// TODO: Is this incompatibility with Firefox 4 intentional?
|
||||
// Probably a false positive. MediaWiki 1.36 dropped Firefox 4 support anyway.
|
||||
// eslint-disable-next-line compat/compat
|
||||
window.location.href
|
||||
);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* @return {boolean}
|
||||
*/
|
||||
function isOwnPageAnchorLink( el ) {
|
||||
// TODO: Is this incompatibility with Firefox 4 intentional?
|
||||
// Probably a false positive. MediaWiki 1.36 dropped Firefox 4 support anyway.
|
||||
/* eslint-disable compat/compat */
|
||||
return el.hash &&
|
||||
// Note: The protocol is ignored for the sake of simplicity.
|
||||
|
|
|
@ -517,7 +517,16 @@ export function layoutPreview(
|
|||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line mediawiki/class-doc
|
||||
// The following classes are used here:
|
||||
// * flipped-x
|
||||
// * flipped-x-y
|
||||
// * flipped-y
|
||||
// * mwe-popups-fade-in-down
|
||||
// * mwe-popups-fade-in-up
|
||||
// * mwe-popups-image-pointer
|
||||
// * mwe-popups-is-not-tall
|
||||
// * mwe-popups-is-tall
|
||||
// * mwe-popups-no-image-pointer
|
||||
popup.addClass( classes.join( ' ' ) );
|
||||
|
||||
popup.css( {
|
||||
|
|
|
@ -161,7 +161,9 @@ export function createThumbnailSVG(
|
|||
|
||||
const $thumbnailSVGImage = $( document.createElementNS( nsSvg, 'image' ) );
|
||||
$thumbnailSVGImage[ 0 ].setAttributeNS( nsXlink, 'href', url );
|
||||
// eslint-disable-next-line mediawiki/class-doc
|
||||
// The following classes are used here:
|
||||
// * mwe-popups-is-not-tall
|
||||
// * mwe-popups-is-tall
|
||||
$thumbnailSVGImage
|
||||
.addClass( className )
|
||||
.attr( {
|
||||
|
|
Loading…
Reference in a new issue