build: Updating dependencies

composer:
* mediawiki/mediawiki-codesniffer: 18.0.0 → 19.1.0

npm:
* grunt: 1.0.1 → 1.3.0
  * https://npmjs.com/advisories/577 (CVE-2018-3721)
  * https://npmjs.com/advisories/745
  * https://npmjs.com/advisories/782 (CVE-2018-16487)
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813
  * https://npmjs.com/advisories/1065 (CVE-2019-10744)
  * https://npmjs.com/advisories/1523 (CVE-2019-10744)

Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".
* Committed package-lock.json (T179229) too.
* And updating CoC link to use Special:MyLanguage (T202047).
* Dropped .php5 and .inc files from .phpcs.xml (T200956).
* Also sorted "composer fix" command to run phpcbf last.
* Set `root: true` in .eslintrc.json (T206485).
* Enable eslint caching.

Change-Id: I36e83261888dd6254f7dbd3495ab1383458b6dfa
Depends-On: I1c5783aae290af5fdcb39f44ac1e832fa5edb6db
This commit is contained in:
libraryupgrader 2021-01-01 05:17:18 +00:00 committed by Florianschmidtwelzow
parent 2fa9bb87b0
commit c3928a448c
8 changed files with 3035 additions and 10 deletions

View file

@ -1,4 +1,5 @@
{
"root": true,
"extends": "wikimedia",
"env": {
"browser": true,

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
vendor
composer.lock
node_modules
/.eslintcache

View file

@ -2,6 +2,6 @@
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" />
</ruleset>

View file

@ -1 +1 @@
The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct).

View file

@ -23,6 +23,9 @@ module.exports = function ( grunt ) {
]
},
eslint: {
options: {
cache: true
},
all: [
'**/*.js',
'!node_modules/**',

View file

@ -1,14 +1,14 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "18.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1"
"mediawiki/mediawiki-codesniffer": "19.1.0",
"mediawiki/minus-x": "0.3.1",
"php-parallel-lint/php-console-highlighter": "0.3.2",
"php-parallel-lint/php-parallel-lint": "1.0.0"
},
"scripts": {
"fix": [
"phpcbf",
"minus-x fix ."
"minus-x fix .",
"phpcbf"
],
"test": [
"parallel-lint . --exclude vendor --exclude node_modules",

3020
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@
},
"devDependencies": {
"eslint-config-wikimedia": "0.5.0",
"grunt": "1.0.1",
"grunt": "1.3.0",
"grunt-banana-checker": "0.4.0",
"grunt-contrib-csslint": "0.5.0",
"grunt-eslint": "20.1.0",