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