From 2066d438ae3dd6acc9370d563bd6aeda39959eda Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 3 Apr 2019 16:20:58 -0700 Subject: [PATCH] build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 Change-Id: Ie1f3e5f9ead8f69da554fb9a3260fa44b1c91f4e --- .gitignore | 3 +++ Gruntfile.js | 4 ++++ package.json | 2 +- resources/ext.relatedArticles.readMore.bootstrap/index.js | 2 +- resources/ext.relatedArticles.readMore/index.js | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5455e93a..d37f3a3b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ coverage # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt +# ESlint intermediate storage +.eslintcache + # node-waf configuration .lock-wscript diff --git a/Gruntfile.js b/Gruntfile.js index 28acf015..de88fafc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,6 +9,10 @@ module.exports = function ( grunt ) { grunt.initConfig( { eslint: { + options: { + reportUnusedDisableDirectives: true, + cache: true + }, all: [ '**/*.js', '!node_modules/**', diff --git a/package.json b/package.json index d3718fee..b11f9747 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test": "grunt test" }, "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/resources/ext.relatedArticles.readMore.bootstrap/index.js b/resources/ext.relatedArticles.readMore.bootstrap/index.js index 67ee84f3..bf642c63 100644 --- a/resources/ext.relatedArticles.readMore.bootstrap/index.js +++ b/resources/ext.relatedArticles.readMore.bootstrap/index.js @@ -1,4 +1,4 @@ -/* eslint-disable jquery/no-global-selector */ +/* eslint-disable no-jquery/no-global-selector */ ( function () { var relatedPages = new mw.relatedPages.RelatedPagesGateway( diff --git a/resources/ext.relatedArticles.readMore/index.js b/resources/ext.relatedArticles.readMore/index.js index 83179c37..c2873629 100644 --- a/resources/ext.relatedArticles.readMore/index.js +++ b/resources/ext.relatedArticles.readMore/index.js @@ -41,7 +41,7 @@ .append( $( '

' ).text( mw.msg( 'relatedarticles-read-more-heading' ) ) ) .append( cards.$el ); - // eslint-disable-next-line jquery/no-global-selector + // eslint-disable-next-line no-jquery/no-global-selector $( '.read-more-container' ).append( $readMore ); } ); } );