From 3190f8829b4f5533fb4f3d2037d189a868c63ba6 Mon Sep 17 00:00:00 2001 From: ASAPSegfault <45430752+ASAPSegfault@users.noreply.github.com> Date: Tue, 13 Feb 2024 08:42:45 +0100 Subject: [PATCH] update eslint to latest version (#387) --- package-lock.json | 82 +++++++++++----- package.json | 2 +- .../commands/init/package-lock.json | 94 +++++++++++++------ .../commands/init/package.json | 2 +- 4 files changed, 128 insertions(+), 52 deletions(-) diff --git a/package-lock.json b/package-lock.json index 65b25cef..7517a5c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "regex": "^0.1.1" }, "devDependencies": { - "@massalabs/eslint-config": "^0.0.10", + "@massalabs/eslint-config": "^0.0.11", "@massalabs/massa-sc-compiler": "^0.1.0", "@massalabs/prettier-config-as": "^0.0.2", "@types/jest": "^29.5.2", @@ -717,17 +717,17 @@ } }, "node_modules/@es-joy/jsdoccomment": { - "version": "0.37.1", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.37.1.tgz", - "integrity": "sha512-5vxWJ1gEkEF0yRd0O+uK6dHJf7adrxwQSX8PuRiPfFSAbNLnY0ZJfXaZucoz14Jj2N11xn2DnlEPwWRpYpvRjg==", + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.41.0.tgz", + "integrity": "sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==", "dev": true, "dependencies": { - "comment-parser": "1.3.1", + "comment-parser": "1.4.1", "esquery": "^1.5.0", "jsdoc-type-pratt-parser": "~4.0.0" }, "engines": { - "node": "^14 || ^16 || ^17 || ^18 || ^19 || ^20" + "node": ">=16" } }, "node_modules/@eslint-community/eslint-utils": { @@ -1398,9 +1398,9 @@ } }, "node_modules/@massalabs/eslint-config": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@massalabs/eslint-config/-/eslint-config-0.0.10.tgz", - "integrity": "sha512-9+ibJr9dEMMdb6q6S+9+1sPlA3jxip+OqP7An9GY40A2PwowJ71yVtVP/LFONOdsJj3pUmPwwD15ExbKZ1UYOg==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@massalabs/eslint-config/-/eslint-config-0.0.11.tgz", + "integrity": "sha512-EyRbNfijUgxPhXZXBZK/IKXqc4AXq+Ta+WZJHFjwzX0f9vA/CAwrRlblY+qlJkvtJ6+XisAEm9pIkXinOinkEw==", "dev": true, "dependencies": { "@typescript-eslint/eslint-plugin": "^5.47.1", @@ -1408,7 +1408,7 @@ "eslint": ">= 8", "eslint-config-google": "^0.14.0", "eslint-config-prettier": "^8.5.0", - "eslint-plugin-jsdoc": "^41.1.1", + "eslint-plugin-jsdoc": "^48.0.4", "eslint-plugin-json": "^3.1.0", "eslint-plugin-tsdoc": "^0.2.17" } @@ -2653,6 +2653,18 @@ "node": ">=6.14.2" } }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/call-bind": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", @@ -2838,9 +2850,9 @@ } }, "node_modules/comment-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", - "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", + "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", "dev": true, "engines": { "node": ">= 12.0.0" @@ -3352,25 +3364,36 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "41.1.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-41.1.2.tgz", - "integrity": "sha512-MePJXdGiPW7AG06CU5GbKzYtKpoHwTq1lKijjq+RwL/cQkZtBZ59Zbv5Ep0RVxSMnq6242249/n+w4XrTZ1Afg==", + "version": "48.0.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.0.5.tgz", + "integrity": "sha512-9ZYb3W6r6nZ3jc9vmJ2pZoINLhk9iI6rEFTfU7sTRAzFUWh00SRI9SRZ+IgDoiIPTp2tOUXs0vDOApdIlTnFKA==", "dev": true, "dependencies": { - "@es-joy/jsdoccomment": "~0.37.0", + "@es-joy/jsdoccomment": "~0.41.0", "are-docs-informative": "^0.0.2", - "comment-parser": "1.3.1", + "comment-parser": "1.4.1", "debug": "^4.3.4", "escape-string-regexp": "^4.0.0", "esquery": "^1.5.0", - "semver": "^7.3.8", - "spdx-expression-parse": "^3.0.1" + "is-builtin-module": "^3.2.1", + "semver": "^7.5.4", + "spdx-expression-parse": "^4.0.0" }, "engines": { - "node": "^14 || ^16 || ^17 || ^18 || ^19" + "node": ">=18" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-jsdoc/node_modules/spdx-expression-parse": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", + "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, "node_modules/eslint-plugin-json": { @@ -4402,6 +4425,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.3.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", diff --git a/package.json b/package.json index de08ad65..dd246c55 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "regex": "^0.1.1" }, "devDependencies": { - "@massalabs/eslint-config": "^0.0.10", + "@massalabs/eslint-config": "^0.0.11", "@massalabs/massa-sc-compiler": "^0.1.0", "@massalabs/prettier-config-as": "^0.0.2", "@types/jest": "^29.5.2", diff --git a/packages/sc-project-initializer/commands/init/package-lock.json b/packages/sc-project-initializer/commands/init/package-lock.json index 897035da..7d666b34 100644 --- a/packages/sc-project-initializer/commands/init/package-lock.json +++ b/packages/sc-project-initializer/commands/init/package-lock.json @@ -13,7 +13,7 @@ "@assemblyscript/loader": "^0.27.2", "@massalabs/as-transformer": "^0.3.2", "@massalabs/as-types": "^2.0.0", - "@massalabs/eslint-config": "^0.0.10", + "@massalabs/eslint-config": "^0.0.11", "@massalabs/massa-as-sdk": "^2.5.4", "@massalabs/massa-sc-compiler": "^0.1.0", "@massalabs/massa-sc-deployer": "^1.3.0", @@ -302,17 +302,17 @@ "dev": true }, "node_modules/@es-joy/jsdoccomment": { - "version": "0.37.1", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.37.1.tgz", - "integrity": "sha512-5vxWJ1gEkEF0yRd0O+uK6dHJf7adrxwQSX8PuRiPfFSAbNLnY0ZJfXaZucoz14Jj2N11xn2DnlEPwWRpYpvRjg==", + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.41.0.tgz", + "integrity": "sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==", "dev": true, "dependencies": { - "comment-parser": "1.3.1", + "comment-parser": "1.4.1", "esquery": "^1.5.0", "jsdoc-type-pratt-parser": "~4.0.0" }, "engines": { - "node": "^14 || ^16 || ^17 || ^18 || ^19 || ^20" + "node": ">=16" } }, "node_modules/@esbuild/aix-ppc64": { @@ -1063,9 +1063,9 @@ } }, "node_modules/@massalabs/eslint-config": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@massalabs/eslint-config/-/eslint-config-0.0.10.tgz", - "integrity": "sha512-9+ibJr9dEMMdb6q6S+9+1sPlA3jxip+OqP7An9GY40A2PwowJ71yVtVP/LFONOdsJj3pUmPwwD15ExbKZ1UYOg==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@massalabs/eslint-config/-/eslint-config-0.0.11.tgz", + "integrity": "sha512-EyRbNfijUgxPhXZXBZK/IKXqc4AXq+Ta+WZJHFjwzX0f9vA/CAwrRlblY+qlJkvtJ6+XisAEm9pIkXinOinkEw==", "dev": true, "dependencies": { "@typescript-eslint/eslint-plugin": "^5.47.1", @@ -1073,7 +1073,7 @@ "eslint": ">= 8", "eslint-config-google": "^0.14.0", "eslint-config-prettier": "^8.5.0", - "eslint-plugin-jsdoc": "^41.1.1", + "eslint-plugin-jsdoc": "^48.0.4", "eslint-plugin-json": "^3.1.0", "eslint-plugin-tsdoc": "^0.2.17" } @@ -2039,6 +2039,18 @@ "node": ">=6.14.2" } }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/call-bind": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", @@ -2245,9 +2257,9 @@ } }, "node_modules/comment-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", - "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", + "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", "dev": true, "engines": { "node": ">= 12.0.0" @@ -2643,25 +2655,36 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "41.1.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-41.1.2.tgz", - "integrity": "sha512-MePJXdGiPW7AG06CU5GbKzYtKpoHwTq1lKijjq+RwL/cQkZtBZ59Zbv5Ep0RVxSMnq6242249/n+w4XrTZ1Afg==", + "version": "48.0.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.0.5.tgz", + "integrity": "sha512-9ZYb3W6r6nZ3jc9vmJ2pZoINLhk9iI6rEFTfU7sTRAzFUWh00SRI9SRZ+IgDoiIPTp2tOUXs0vDOApdIlTnFKA==", "dev": true, "dependencies": { - "@es-joy/jsdoccomment": "~0.37.0", + "@es-joy/jsdoccomment": "~0.41.0", "are-docs-informative": "^0.0.2", - "comment-parser": "1.3.1", + "comment-parser": "1.4.1", "debug": "^4.3.4", "escape-string-regexp": "^4.0.0", "esquery": "^1.5.0", - "semver": "^7.3.8", - "spdx-expression-parse": "^3.0.1" + "is-builtin-module": "^3.2.1", + "semver": "^7.5.4", + "spdx-expression-parse": "^4.0.0" }, "engines": { - "node": "^14 || ^16 || ^17 || ^18 || ^19" + "node": ">=18" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-jsdoc/node_modules/spdx-expression-parse": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", + "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, "node_modules/eslint-plugin-json": { @@ -3728,6 +3751,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.3.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -7399,7 +7437,7 @@ }, "node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT" }, @@ -7415,19 +7453,19 @@ }, "node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7442,7 +7480,7 @@ }, "node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT" }, @@ -7460,7 +7498,7 @@ }, "node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT" }, diff --git a/packages/sc-project-initializer/commands/init/package.json b/packages/sc-project-initializer/commands/init/package.json index 1ff61fad..63a4210e 100644 --- a/packages/sc-project-initializer/commands/init/package.json +++ b/packages/sc-project-initializer/commands/init/package.json @@ -23,7 +23,7 @@ "@assemblyscript/loader": "^0.27.2", "@massalabs/as-transformer": "^0.3.2", "@massalabs/as-types": "^2.0.0", - "@massalabs/eslint-config": "^0.0.10", + "@massalabs/eslint-config": "^0.0.11", "@massalabs/massa-as-sdk": "^2.5.4", "@massalabs/massa-sc-compiler": "^0.1.0", "@massalabs/massa-sc-deployer": "^1.3.0",