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",