mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 15:36:47 +00:00
build: Update devDependencies
Change-Id: I80bd6849b1616b9c94e75eddfbf5f476b799e07b
This commit is contained in:
parent
c74554cb27
commit
ef6294074e
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
16
modules/.eslintrc.json
Normal 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"
|
||||
}
|
||||
}
|
|
@ -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
7800
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"wikimedia/qunit",
|
||||
"../../.eslintrc.json"
|
||||
"../../modules/.eslintrc.json",
|
||||
"wikimedia/qunit"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue