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

View file

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

View file

@ -15,6 +15,7 @@
"fix": [ "fix": [
"minus-x fix .", "minus-x fix .",
"phpcbf" "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": { "devDependencies": {
"eslint-config-wikimedia": "0.16.2", "eslint-config-wikimedia": "0.16.2",
"grunt": "1.1.0", "grunt": "1.4.0",
"grunt-banana-checker": "0.9.0", "grunt-banana-checker": "0.9.0",
"grunt-eslint": "23.0.0" "grunt-eslint": "23.0.0"
} }