Merge "build: Update devDependencies"

This commit is contained in:
jenkins-bot 2019-08-01 02:15:32 +00:00 committed by Gerrit Code Review
commit b351d1b5fc
6 changed files with 16 additions and 9 deletions

View file

@ -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",

View file

@ -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: {

View file

@ -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"
} }
} }

View file

@ -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' );
} }

View file

@ -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;
} }

View file

@ -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"
} }
} }