From 7ca336c28e19632632f2c825b11114372bd0364d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 14 Jun 2021 14:36:17 -0400 Subject: [PATCH] lint: Update eslint-config-etherpad and friends --- src/bin/plugins/checkPlugin.js | 11 ++++++----- src/package-lock.json | 31 +++++++++++++++++++++---------- src/package.json | 8 ++++---- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/bin/plugins/checkPlugin.js b/src/bin/plugins/checkPlugin.js index 3c36712ca..4876c1362 100755 --- a/src/bin/plugins/checkPlugin.js +++ b/src/bin/plugins/checkPlugin.js @@ -220,14 +220,15 @@ fs.readdir(pluginPath, (err, rootFiles) => { } updateDeps(parsedPackageJSON, 'devDependencies', { - 'eslint': '^7.20.0', - 'eslint-config-etherpad': '^1.0.25', + 'eslint': '^7.28.0', + 'eslint-config-etherpad': '^2.0.0', + 'eslint-plugin-cypress': '^2.11.3', 'eslint-plugin-eslint-comments': '^3.2.0', - 'eslint-plugin-mocha': '^8.0.0', + 'eslint-plugin-mocha': '^9.0.0', 'eslint-plugin-node': '^11.1.0', 'eslint-plugin-prefer-arrow': '^1.2.3', - 'eslint-plugin-promise': '^4.3.1', - 'eslint-plugin-you-dont-need-lodash-underscore': '^6.11.0', + 'eslint-plugin-promise': '^5.1.0', + 'eslint-plugin-you-dont-need-lodash-underscore': '^6.12.0', }); updateDeps(parsedPackageJSON, 'peerDependencies', { diff --git a/src/package-lock.json b/src/package-lock.json index 10680fa94..28b182bd9 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -1936,9 +1936,9 @@ } }, "eslint-config-etherpad": { - "version": "1.0.27", - "resolved": "https://registry.npmjs.org/eslint-config-etherpad/-/eslint-config-etherpad-1.0.27.tgz", - "integrity": "sha512-WLo7WOazNiPirTpJkJcUK9LTv0/EdwrzJuP7NljaAsA1h9f5/VhMHKnrcmXyOv2255mjpG52ouidvZLcD356Hw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-etherpad/-/eslint-config-etherpad-2.0.0.tgz", + "integrity": "sha512-ejBTLZiXkreSHNsdHWk/vCRkieYb6CpVZb/DH2QKbYktqRN/EFgaSISLb/8n8HZA5XvLVLbRDvDyBc/h3tIEcA==", "dev": true }, "eslint-plugin-cypress": { @@ -1987,13 +1987,24 @@ } }, "eslint-plugin-mocha": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-8.2.0.tgz", - "integrity": "sha512-8oOR47Ejt+YJPNQzedbiklDqS1zurEaNrxXpRs+Uk4DMDPVmKNagShFeUaYsfvWP55AhI+P1non5QZAHV6K78A==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-9.0.0.tgz", + "integrity": "sha512-d7knAcQj1jPCzZf3caeBIn3BnW6ikcvfz0kSqQpwPYcVGLoJV5sz0l0OJB2LR8I7dvTDbqq1oV6ylhSgzA10zg==", "dev": true, "requires": { - "eslint-utils": "^2.1.0", + "eslint-utils": "^3.0.0", "ramda": "^0.27.1" + }, + "dependencies": { + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + } + } } }, "eslint-plugin-node": { @@ -7755,9 +7766,9 @@ } }, "regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, "rehype": { diff --git a/src/package.json b/src/package.json index 9b981cf5d..3ad2858d4 100644 --- a/src/package.json +++ b/src/package.json @@ -78,15 +78,15 @@ "etherpad-lite": "node/server.js" }, "devDependencies": { - "eslint": "^7.26.0", - "eslint-config-etherpad": "^1.0.27", + "eslint": "^7.28.0", + "eslint-config-etherpad": "^2.0.0", "eslint-plugin-cypress": "^2.11.3", "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-mocha": "^8.1.0", + "eslint-plugin-mocha": "^9.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prefer-arrow": "^1.2.3", "eslint-plugin-promise": "^5.1.0", - "eslint-plugin-you-dont-need-lodash-underscore": "^6.11.0", + "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0", "etherpad-cli-client": "0.0.9", "mocha": "7.1.2", "mocha-froth": "^0.2.10",