From 6c7d8a43c386a0b350a7855cd9cf675cb48141b7 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 3 Oct 2017 16:23:24 +0100 Subject: [PATCH] build: Update linters Change-Id: Idb5705ef24c0731c47f33b310a9a3fb2fa5f2227 --- modules/ext.templateDataGenerator.data.js | 2 +- .../ext.templateDataGenerator.languageSearchWidget.js | 2 +- package.json | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/ext.templateDataGenerator.data.js b/modules/ext.templateDataGenerator.data.js index 746b987c..ab917c8e 100644 --- a/modules/ext.templateDataGenerator.data.js +++ b/modules/ext.templateDataGenerator.data.js @@ -118,7 +118,7 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) { name: { type: 'string', // Validation regex - restrict: /[\|=]|}}/ + restrict: /[|=]|}}/ }, aliases: { type: 'array', diff --git a/modules/widgets/ext.templateDataGenerator.languageSearchWidget.js b/modules/widgets/ext.templateDataGenerator.languageSearchWidget.js index 44055396..4f4e5f3a 100644 --- a/modules/widgets/ext.templateDataGenerator.languageSearchWidget.js +++ b/modules/widgets/ext.templateDataGenerator.languageSearchWidget.js @@ -134,5 +134,5 @@ mw.TemplateData.LanguageSearchWidget.prototype.addResults = function () { * @return {string} Text escaped for use in regex */ mw.TemplateData.LanguageSearchWidget.static.escapeRegex = function ( value ) { - return value.replace( /[\-\[\]{}()*+?.,\\\^$\|#\s]/g, '\\$&' ); + return value.replace( /[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&' ); }; diff --git a/package.json b/package.json index 46ef765b..8f42a9fd 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,13 @@ "doc": "jsduck" }, "devDependencies": { - "eslint-config-wikimedia": "0.4.0", + "eslint-config-wikimedia": "0.5.0", "grunt": "1.0.1", - "grunt-banana-checker": "0.5.0", + "grunt-banana-checker": "0.6.0", "grunt-contrib-watch": "1.0.0", - "grunt-eslint": "19.0.0", - "grunt-jsonlint": "1.0.8", - "grunt-stylelint": "0.7.0", + "grunt-eslint": "20.0.0", + "grunt-jsonlint": "1.1.0", + "grunt-stylelint": "0.8.0", "stylelint": "7.8.0", "stylelint-config-wikimedia": "0.4.1" }