mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
build: Update eslint-config-wikimedia to 0.11.0
Change-Id: Idae38d2dff51827f7aff510d40b2358bf939b5e2
This commit is contained in:
parent
f0b209ba50
commit
7e76377bf8
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -40,3 +40,4 @@ Thumbs.db
|
|||
/tags
|
||||
/.htaccess
|
||||
/.htpasswd
|
||||
.eslintcache
|
||||
|
|
|
@ -9,7 +9,8 @@ module.exports = function ( grunt ) {
|
|||
grunt.initConfig( {
|
||||
eslint: {
|
||||
options: {
|
||||
reportUnusedDisableDirectives: true
|
||||
reportUnusedDisableDirectives: true,
|
||||
cache: true
|
||||
},
|
||||
all: [
|
||||
'*.js',
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
|
||||
// Remove the element from where it's at and put it in the dropdown menu
|
||||
target = outerData.collapsedContainer;
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
// eslint-disable-next-line no-jquery/no-animate
|
||||
$moving.css( 'position', 'relative' )
|
||||
.css( ( isRTL ? 'left' : 'right' ), 0 )
|
||||
.animate( { width: '1px' }, 'normal', function () {
|
||||
|
@ -175,7 +175,7 @@
|
|||
expandedWidth = data.expandedWidth;
|
||||
$moving.css( 'position', 'relative' ).css( ( isRTL ? 'right' : 'left' ), 0 ).css( 'width', '1px' );
|
||||
$target.replaceWith(
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
// eslint-disable-next-line no-jquery/no-animate
|
||||
$moving
|
||||
.detach()
|
||||
.css( 'width', '1px' )
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"doc": "jsduck"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.10.1",
|
||||
"eslint-config-wikimedia": "0.11.0",
|
||||
"grunt": "1.0.3",
|
||||
"grunt-banana-checker": "0.7.0",
|
||||
"grunt-eslint": "21.0.0",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* Vector-specific scripts
|
||||
*/
|
||||
/* eslint-disable jquery/no-global-selector */
|
||||
/* eslint-disable no-jquery/no-global-selector */
|
||||
$( function () {
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ $( function () {
|
|||
// If the dropdown was hidden, show it
|
||||
if ( $cactions.hasClass( 'emptyPortlet' ) ) {
|
||||
$cactions.removeClass( 'emptyPortlet' );
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
// eslint-disable-next-line no-jquery/no-animate
|
||||
$cactions.find( 'h3' )
|
||||
.css( 'width', '1px' )
|
||||
.animate( { width: initialCactionsWidth() }, 'normal' );
|
||||
|
@ -42,7 +42,7 @@ $( function () {
|
|||
.on( 'beforeTabExpand', function () {
|
||||
// If we're removing the last child node right now, hide the dropdown
|
||||
if ( $cactions.find( 'li' ).length === 1 ) {
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
// eslint-disable-next-line no-jquery/no-animate
|
||||
$cactions.find( 'h3' ).animate( { width: '1px' }, 'normal', function () {
|
||||
$( this ).attr( 'style', '' )
|
||||
.parent().addClass( 'emptyPortlet' );
|
||||
|
|
Loading…
Reference in a new issue