diff --git a/.gitignore b/.gitignore index 4a10ec205..57772e62b 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ Thumbs.db /tags /.htaccess /.htpasswd +.eslintcache diff --git a/Gruntfile.js b/Gruntfile.js index 51cc3441b..a61aa6014 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,8 @@ module.exports = function ( grunt ) { grunt.initConfig( { eslint: { options: { - reportUnusedDisableDirectives: true + reportUnusedDisableDirectives: true, + cache: true }, all: [ '*.js', diff --git a/collapsibleTabs.js b/collapsibleTabs.js index 9b13f4fce..a23520ae4 100644 --- a/collapsibleTabs.js +++ b/collapsibleTabs.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' ) diff --git a/package.json b/package.json index f5bd042ef..c276a27c4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/vector.js b/vector.js index e7e8cd0e1..bf9262326 100644 --- a/vector.js +++ b/vector.js @@ -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' );