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