From 21df0e70d66a5a5d4317941b9c8db0460e1a5289 Mon Sep 17 00:00:00 2001 From: Amulya Kashyap Date: Tue, 7 Jan 2025 02:00:07 +0530 Subject: [PATCH] updating eslint-config-aio-lib-config and peer deps && changed the @param type input --- .eslintrc | 1 + package.json | 14 +++++++------- src/AioCoreSDKErrorWrapper.js | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.eslintrc b/.eslintrc index f263f9e..5a8a281 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,7 @@ { "extends": "@adobe/eslint-config-aio-lib-config", "rules": { + "jsdoc/no-defaults": 0, "jsdoc/tag-lines": [ // The Error level should be `error`, `warn`, or `off` (or 2, 1, or 0) "error", diff --git a/package.json b/package.json index 05c95ba..8b3dd84 100644 --- a/package.json +++ b/package.json @@ -17,16 +17,16 @@ "author": "Adobe Inc.", "license": "Apache-2.0", "devDependencies": { - "@adobe/eslint-config-aio-lib-config": "^2.0.1", + "@adobe/eslint-config-aio-lib-config": "^4.0.0", "codecov": "^3.5.0", - "eslint": "^8.47.0", + "eslint": "^8.57.1", "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.28.0", - "eslint-plugin-jest": "^27.2.3", - "eslint-plugin-jsdoc": "^42.0.0", - "eslint-plugin-n": "^15.7", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jest": "^27.9.0", + "eslint-plugin-jsdoc": "^48.11.0", + "eslint-plugin-n": "^15.7.0", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-promise": "^6.6.0", "jest": "^29.5.0", "jsdoc-to-markdown": "^8.0.0", "tsd-jsdoc": "^2.4.0", diff --git a/src/AioCoreSDKErrorWrapper.js b/src/AioCoreSDKErrorWrapper.js index bc02bf0..62779c6 100644 --- a/src/AioCoreSDKErrorWrapper.js +++ b/src/AioCoreSDKErrorWrapper.js @@ -41,7 +41,7 @@ function curryCreateClass (errorClassName, sdkName, message, BaseClass) { * Returns a function that updates the parameters specified. * This is used in ErrorWrapper. * - * @param {Object} codes an object that will map an error code to an Error class. + * @param {{[key: string]: Error}} codes an object that will map an error code to an Error class. * @param {Map.} messages a Map, that will map the error code to an error message * @returns {Function} an updater function */