build: Update devDependencies

Change-Id: I80bd6849b1616b9c94e75eddfbf5f476b799e07b
This commit is contained in:
Ed Sanders 2022-03-13 17:17:03 +00:00
parent c74554cb27
commit ef6294074e
7 changed files with 6056 additions and 1794 deletions

View file

@ -1,16 +1,6 @@
{
"root": true,
"env": {
"commonjs": true
},
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off",
"no-shadow": "warn",
"compat/compat": "warn"
}
"wikimedia/server"
]
}

View file

@ -4,9 +4,9 @@
* @package TemplateData
*/
/* eslint-env node */
'use strict';
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
const conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );

16
modules/.eslintrc.json Normal file
View file

@ -0,0 +1,16 @@
{
"root": true,
"env": {
"commonjs": true
},
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off",
"no-shadow": "warn",
"compat/compat": "warn"
}
}

View file

@ -232,7 +232,7 @@ Target.prototype.replaceTemplateData = function ( newTemplateData ) {
}
}
if ( this.originalWikitext.substr( -1 ) !== '\n' ) {
if ( this.originalWikitext.slice( -1 ) !== '\n' ) {
templateDataOutput = '\n' + templateDataOutput;
}
}

7800
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,13 +5,13 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.20.0",
"grunt": "1.4.0",
"eslint-config-wikimedia": "0.22.1",
"grunt": "1.4.1",
"grunt-banana-checker": "0.9.0",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "23.0.0",
"grunt-stylelint": "0.16.0",
"grunt-eslint": "24.0.0",
"grunt-stylelint": "0.17.0",
"jsdoc": "3.6.7",
"stylelint-config-wikimedia": "0.11.1"
"stylelint-config-wikimedia": "0.12.2"
}
}

View file

@ -1,6 +1,6 @@
{
"extends": [
"wikimedia/qunit",
"../../.eslintrc.json"
"../../modules/.eslintrc.json",
"wikimedia/qunit"
]
}