build: Updating npm dependencies

* grunt: 1.1.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)

Additional changes:
* Consolidated .phpcs.xml encoding to "UTF-8" (T200956).
* Dropped .php5 and .inc files from .phpcs.xml (T200956).
* Added the "composer phan" command to conveniently run phan.
* Removing manual extensions for eslint.

Change-Id: Ib871d1e275f3b7263d33c5a8fe8722846d19832c
This commit is contained in:
libraryupgrader 2021-05-11 06:20:50 +00:00
parent c84d59bd38
commit 2ebea0ce8f
5 changed files with 511 additions and 353 deletions

View file

@ -7,7 +7,7 @@
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="utf8" />
<arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" />
<exclude-pattern>vendor</exclude-pattern>
</ruleset>

View file

@ -8,7 +8,6 @@ module.exports = function ( grunt ) {
grunt.initConfig( {
eslint: {
options: {
extensions: [ '.js', '.json' ],
cache: true
},
all: [

View file

@ -15,6 +15,7 @@
"fix": [
"minus-x fix .",
"phpcbf"
]
],
"phan": "phan -d . --long-progress-bar"
}
}

854
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@
},
"devDependencies": {
"eslint-config-wikimedia": "0.16.2",
"grunt": "1.1.0",
"grunt": "1.4.0",
"grunt-banana-checker": "0.9.0",
"grunt-eslint": "23.0.0"
}