build: Updating npm dependencies

* eslint-config-wikimedia: 0.5.0 → 0.15.0
  The following rules are failing and were disabled:
  * no-prototype-builtins

* grunt-eslint: 20.1.0 → 22.0.0
* grunt-stylelint: 0.10.1 → 0.13.0
* stylelint-config-wikimedia: 0.4.3 → 0.8.0
  The following rules are failing and were disabled:
  * rule-empty-line-before

Additional changes:
* Remove direct "stylelint" dependency in favor of "grunt-stylelint".
* Also sorted "composer fix" command to run phpcbf last.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I5218ef05353b85925bff7fdd4d5eeae0a71ccac2
This commit is contained in:
libraryupgrader 2020-01-10 13:51:33 +00:00
parent 6407ae6590
commit 4f092b042c
6 changed files with 1265 additions and 1346 deletions

View file

@ -7,5 +7,8 @@
},
"globals": {
"mediaWiki": false
},
"rules": {
"no-prototype-builtins": "warn"
}
}

View file

@ -1,3 +1,6 @@
{
"extends": "stylelint-config-wikimedia"
"extends": "stylelint-config-wikimedia",
"rules": {
"rule-empty-line-before": null
}
}

View file

@ -24,8 +24,7 @@ module.exports = function ( grunt ) {
},
eslint: {
options: {
cache: true,
reportUnusedDisableDirectives: true
cache: true
},
all: [
'**/*.js',

View file

@ -7,8 +7,8 @@
},
"scripts": {
"fix": [
"phpcbf",
"minus-x fix ."
"minus-x fix .",
"phpcbf"
],
"test": [
"parallel-lint . --exclude vendor --exclude node_modules",

2587
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,13 +7,12 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.5.0",
"eslint-config-wikimedia": "0.15.0",
"grunt": "1.0.4",
"grunt-banana-checker": "0.8.1",
"grunt-eslint": "20.1.0",
"grunt-eslint": "22.0.0",
"grunt-jsonlint": "1.0.7",
"grunt-stylelint": "0.10.1",
"stylelint": "9.2.0",
"stylelint-config-wikimedia": "0.4.3"
"grunt-stylelint": "0.13.0",
"stylelint-config-wikimedia": "0.8.0"
}
}