mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-23 10:21:45 +00:00
build: Update linters
Change-Id: Idb5705ef24c0731c47f33b310a9a3fb2fa5f2227
This commit is contained in:
parent
fac7913e8b
commit
6c7d8a43c3
|
@ -118,7 +118,7 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) {
|
|||
name: {
|
||||
type: 'string',
|
||||
// Validation regex
|
||||
restrict: /[\|=]|}}/
|
||||
restrict: /[|=]|}}/
|
||||
},
|
||||
aliases: {
|
||||
type: 'array',
|
||||
|
|
|
@ -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, '\\$&' );
|
||||
};
|
||||
|
|
10
package.json
10
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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue