build: Update linters

Change-Id: Idb5705ef24c0731c47f33b310a9a3fb2fa5f2227
This commit is contained in:
Ed Sanders 2017-10-03 16:23:24 +01:00
parent fac7913e8b
commit 6c7d8a43c3
3 changed files with 7 additions and 7 deletions

View file

@ -118,7 +118,7 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) {
name: { name: {
type: 'string', type: 'string',
// Validation regex // Validation regex
restrict: /[\|=]|}}/ restrict: /[|=]|}}/
}, },
aliases: { aliases: {
type: 'array', type: 'array',

View file

@ -134,5 +134,5 @@ mw.TemplateData.LanguageSearchWidget.prototype.addResults = function () {
* @return {string} Text escaped for use in regex * @return {string} Text escaped for use in regex
*/ */
mw.TemplateData.LanguageSearchWidget.static.escapeRegex = function ( value ) { mw.TemplateData.LanguageSearchWidget.static.escapeRegex = function ( value ) {
return value.replace( /[\-\[\]{}()*+?.,\\\^$\|#\s]/g, '\\$&' ); return value.replace( /[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&' );
}; };

View file

@ -5,13 +5,13 @@
"doc": "jsduck" "doc": "jsduck"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.4.0", "eslint-config-wikimedia": "0.5.0",
"grunt": "1.0.1", "grunt": "1.0.1",
"grunt-banana-checker": "0.5.0", "grunt-banana-checker": "0.6.0",
"grunt-contrib-watch": "1.0.0", "grunt-contrib-watch": "1.0.0",
"grunt-eslint": "19.0.0", "grunt-eslint": "20.0.0",
"grunt-jsonlint": "1.0.8", "grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.7.0", "grunt-stylelint": "0.8.0",
"stylelint": "7.8.0", "stylelint": "7.8.0",
"stylelint-config-wikimedia": "0.4.1" "stylelint-config-wikimedia": "0.4.1"
} }