From 6671a09959d75f3115c2244bb665c89e05359d9c Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 13 Mar 2019 23:16:58 +0000 Subject: [PATCH] build: Update eslint-config-wikimedia to 0.11.0 Change-Id: Ia109737bc7a0828dfdad14e4e2163d2add0c651c --- .gitignore | 1 + Gruntfile.js | 3 ++- modules/ext.templateDataGenerator.editTemplatePage.js | 2 +- modules/ext.templateDataGenerator.ui.tdDialog.js | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ecfc87bc..0f692305 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ node_modules composer.lock vendor +.eslintcache diff --git a/Gruntfile.js b/Gruntfile.js index d90effbe..7b91771f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,7 +17,8 @@ module.exports = function ( grunt ) { grunt.initConfig( { eslint: { options: { - reportUnusedDisableDirectives: true + reportUnusedDisableDirectives: true, + cache: true }, all: [ 'modules/**/*.js', diff --git a/modules/ext.templateDataGenerator.editTemplatePage.js b/modules/ext.templateDataGenerator.editTemplatePage.js index f5e09626..8d4cddef 100644 --- a/modules/ext.templateDataGenerator.editTemplatePage.js +++ b/modules/ext.templateDataGenerator.editTemplatePage.js @@ -6,7 +6,7 @@ */ /* global ve */ -/* eslint-disable jquery/no-global-selector */ +/* eslint-disable no-jquery/no-global-selector */ $( function () { 'use strict'; diff --git a/modules/ext.templateDataGenerator.ui.tdDialog.js b/modules/ext.templateDataGenerator.ui.tdDialog.js index e241fcec..4ed8639b 100644 --- a/modules/ext.templateDataGenerator.ui.tdDialog.js +++ b/modules/ext.templateDataGenerator.ui.tdDialog.js @@ -553,7 +553,7 @@ mw.TemplateData.Dialog.prototype.onParamPropertyInputChange = function ( propert // Validate // FIXME: Don't read model information from the DOM - // eslint-disable-next-line jquery/no-global-selector + // eslint-disable-next-line no-jquery/no-global-selector anyInputError = !!$( '.tdg-templateDataDialog-paramInput.tdg-editscreen-input-error' ).length; // Disable the 'done' button if there are any errors in the inputs diff --git a/package.json b/package.json index 5851ddc3..ba1f0538 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.6.0", "grunt-contrib-watch": "1.1.0",