mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 00:03:56 +00:00
Merge "build: Update devDependencies"
This commit is contained in:
commit
b351d1b5fc
|
@ -11,6 +11,7 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"max-len": "off",
|
"max-len": "off",
|
||||||
"max-statements-per-line": "off",
|
"max-statements-per-line": "off",
|
||||||
|
"no-jquery/no-class-state": "off",
|
||||||
"no-jquery/no-noop": "off",
|
"no-jquery/no-noop": "off",
|
||||||
"no-jquery/no-now": "off",
|
"no-jquery/no-now": "off",
|
||||||
"no-jquery/no-proxy": "off",
|
"no-jquery/no-proxy": "off",
|
||||||
|
|
|
@ -17,8 +17,8 @@ module.exports = function ( grunt ) {
|
||||||
cache: true
|
cache: true
|
||||||
},
|
},
|
||||||
all: [
|
all: [
|
||||||
'**/*.js{,on}',
|
'**/*.{js,json}',
|
||||||
'!{vendor,node_modules}/**'
|
'!{vendor,node_modules,docs}/**'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
stylelint: {
|
stylelint: {
|
||||||
|
|
12
package.json
12
package.json
|
@ -5,12 +5,12 @@
|
||||||
"doc": "jsduck"
|
"doc": "jsduck"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.12.0",
|
"eslint-config-wikimedia": "0.13.1",
|
||||||
"grunt": "1.0.3",
|
"grunt": "1.0.4",
|
||||||
"grunt-banana-checker": "0.7.0",
|
"grunt-banana-checker": "0.7.1",
|
||||||
"grunt-eslint": "21.0.0",
|
"grunt-eslint": "21.0.0",
|
||||||
"grunt-stylelint": "0.10.1",
|
"grunt-stylelint": "0.11.0",
|
||||||
"grunt-svgmin": "5.0.0",
|
"grunt-svgmin": "6.0.0",
|
||||||
"stylelint-config-wikimedia": "0.5.0"
|
"stylelint-config-wikimedia": "0.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -362,6 +362,7 @@
|
||||||
$thumbCaption = $potentialCaptions.eq( 0 );
|
$thumbCaption = $potentialCaptions.eq( 0 );
|
||||||
} else {
|
} else {
|
||||||
// Template:Multiple_image or some such; try to find closest caption to the image
|
// Template:Multiple_image or some such; try to find closest caption to the image
|
||||||
|
// eslint-disable-next-line no-jquery/no-sizzle
|
||||||
$thumbCaption = $link.closest( ':has(> .thumbcaption)', $thumbContain )
|
$thumbCaption = $link.closest( ':has(> .thumbcaption)', $thumbContain )
|
||||||
.find( '> .thumbcaption' );
|
.find( '> .thumbcaption' );
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,8 @@
|
||||||
MPSP.freezeHeight = function () {
|
MPSP.freezeHeight = function () {
|
||||||
var scrollTop, scrollTopWhenOpen;
|
var scrollTop, scrollTopWhenOpen;
|
||||||
|
|
||||||
|
// TODO: Store visibility in model
|
||||||
|
// eslint-disable-next-line no-jquery/no-sizzle
|
||||||
if ( !this.$container.is( ':visible' ) ) {
|
if ( !this.$container.is( ':visible' ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -124,6 +126,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
MPSP.unfreezeHeight = function () {
|
MPSP.unfreezeHeight = function () {
|
||||||
|
// TODO: Store visibility in model
|
||||||
|
// eslint-disable-next-line no-jquery/no-sizzle
|
||||||
if ( !this.$container.is( ':visible' ) ) {
|
if ( !this.$container.is( ':visible' ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"../../.eslintrc.json"
|
"../../.eslintrc.json"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-jquery/no-global-selector": "off"
|
"no-jquery/no-global-selector": "off",
|
||||||
|
"no-jquery/no-sizzle": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue