diff --git a/package-lock.json b/package-lock.json index 3dc9419a9bb..e3ad2c06db9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -856,21 +856,21 @@ } }, "@ridedott/eslint-config": { - "version": "0.4.67", - "resolved": "https://registry.npmjs.org/@ridedott/eslint-config/-/eslint-config-0.4.67.tgz", - "integrity": "sha512-3OA1RjMDxyHTQE+POxeMc3EhM6tGtTpQ8h+UD7e/8PM20t15NMlzrt5YGJ6wogvKNEHLi3rVV5us5fa2LCpa3w==", + "version": "0.4.72", + "resolved": "https://registry.npmjs.org/@ridedott/eslint-config/-/eslint-config-0.4.72.tgz", + "integrity": "sha512-DwvmJoXM+ITQqw9/XjNXE7rSmB38gn8i0SKIw6TrDKkRDL7hUp52JdC7NK5zc12ZTZsXMN3c2QhVw605leHUow==", "dev": true, "requires": { - "@typescript-eslint/eslint-plugin": "^2.7.0", - "@typescript-eslint/parser": "^2.7.0", - "eslint": "^6.6.0", - "eslint-config-prettier": "^6.5.0", + "@typescript-eslint/eslint-plugin": "^2.10.0", + "@typescript-eslint/parser": "^2.10.0", + "eslint": "^6.7.2", + "eslint-config-prettier": "^6.7.0", "eslint-plugin-array-func": "^3.1.3", "eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-immutable": "^1.0.0", - "eslint-plugin-jest": "^23.0.4", - "eslint-plugin-simple-import-sort": "^4.0.0", - "eslint-plugin-unicorn": "^13.0.0", + "eslint-plugin-jest": "^23.1.1", + "eslint-plugin-simple-import-sort": "^5.0.0", + "eslint-plugin-unicorn": "^14.0.1", "typescript": "^3.7.2" } }, @@ -1776,55 +1776,78 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.7.0.tgz", - "integrity": "sha512-H5G7yi0b0FgmqaEUpzyBlVh0d9lq4cWG2ap0RKa6BkF3rpBb6IrAoubt1NWh9R2kRs/f0k6XwRDiDz3X/FqXhQ==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz", + "integrity": "sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.7.0", - "eslint-utils": "^1.4.2", + "@typescript-eslint/experimental-utils": "2.10.0", + "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", - "regexpp": "^2.0.1", + "regexpp": "^3.0.0", "tsutils": "^3.17.1" + }, + "dependencies": { + "regexpp": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz", + "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==", + "dev": true + } } }, "@typescript-eslint/experimental-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.7.0.tgz", - "integrity": "sha512-9/L/OJh2a5G2ltgBWJpHRfGnt61AgDeH6rsdg59BH0naQseSwR7abwHq3D5/op0KYD/zFT4LS5gGvWcMmegTEg==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz", + "integrity": "sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.7.0", + "@typescript-eslint/typescript-estree": "2.10.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.7.0.tgz", - "integrity": "sha512-ctC0g0ZvYclxMh/xI+tyqP0EC2fAo6KicN9Wm2EIao+8OppLfxji7KAGJosQHSGBj3TcqUrA96AjgXuKa5ob2g==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.10.0.tgz", + "integrity": "sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.7.0", - "@typescript-eslint/typescript-estree": "2.7.0", + "@typescript-eslint/experimental-utils": "2.10.0", + "@typescript-eslint/typescript-estree": "2.10.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.7.0.tgz", - "integrity": "sha512-vVCE/DY72N4RiJ/2f10PTyYekX2OLaltuSIBqeHYI44GQ940VCYioInIb8jKMrK9u855OEJdFC+HmWAZTnC+Ag==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz", + "integrity": "sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g==", "dev": true, "requires": { "debug": "^4.1.1", - "glob": "^7.1.4", + "eslint-visitor-keys": "^1.1.0", + "glob": "^7.1.6", "is-glob": "^4.0.1", "lodash.unescape": "4.0.1", "semver": "^6.3.0", "tsutils": "^3.17.1" }, "dependencies": { + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -2430,12 +2453,6 @@ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, - "builtins": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "integrity": "sha1-y5T662HIaWRR2zZTThQi+U8K7og=", - "dev": true - }, "cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", @@ -4354,9 +4371,9 @@ } }, "eslint-config-prettier": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.5.0.tgz", - "integrity": "sha512-cjXp8SbO9VFGW/Z7mbTydqS9to8Z58E5aYhj3e1+Hx7lS9s6gL5ILKNpCqZAFOVYRcSkWPFYljHrEh8QFEK5EQ==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.7.0.tgz", + "integrity": "sha512-FamQVKM3jjUVwhG4hEMnbtsq7xOIDm+SY5iBPfR8gKsJoAB2IQnNF+bk1+8Fy44Nq7PPJaLvkRxILYdJWoguKQ==", "dev": true, "requires": { "get-stdin": "^6.0.0" @@ -4401,27 +4418,24 @@ "dev": true }, "eslint-plugin-jest": { - "version": "23.0.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-23.0.4.tgz", - "integrity": "sha512-OaP8hhT8chJNodUPvLJ6vl8gnalcsU/Ww1t9oR3HnGdEWjm/DdCCUXLOral+IPGAeWu/EwgVQCK/QtxALpH1Yw==", + "version": "23.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-23.1.1.tgz", + "integrity": "sha512-2oPxHKNh4j1zmJ6GaCBuGcb8FVZU7YjFUOJzGOPnl9ic7VA/MGAskArLJiRIlnFUmi1EUxY+UiATAy8dv8s5JA==", "dev": true, "requires": { "@typescript-eslint/experimental-utils": "^2.5.0" } }, "eslint-plugin-simple-import-sort": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-4.0.0.tgz", - "integrity": "sha512-QsxOMrXhhqvSiTmZafPc/lvSET9lhblaO2kaaSbFo1FVU/AW9mFQDXadiHJ5OqG6i0N6+Qd+RZ95iQbkg4p+0w==", - "dev": true, - "requires": { - "validate-npm-package-name": "^3.0.0" - } + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-5.0.0.tgz", + "integrity": "sha512-Zn6OppySnbwl/UonkzmMBbiFXZwe/tI9ZlSXwQek5h1FfPv3hcDTE3kG0SC70pBsKuVE8IMwZCMl0tKwcY89rw==", + "dev": true }, "eslint-plugin-unicorn": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-13.0.0.tgz", - "integrity": "sha512-9CQk0v74vQpETMt6iqNgjf3IbWEFhrT0sjaLnjkl9SF3rJH6ZL9f7H42BXJ6LPENQR97QzhrIvB8VG0nD05wxQ==", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-14.0.1.tgz", + "integrity": "sha512-mTyH4s5ogCE8gaVSNPF14hpSuMfW+bGW+Hg8wNzFPpOJeRHWtdeCFmjz+9nZW4VJQ7gtWfa5KMFF7gKj9KcfAg==", "dev": true, "requires": { "ci-info": "^2.0.0", @@ -4436,6 +4450,7 @@ "lodash.topairs": "^4.3.0", "lodash.upperfirst": "^4.3.1", "read-pkg-up": "^7.0.0", + "regexp-tree": "^0.1.16", "regexpp": "^3.0.0", "reserved-words": "^0.1.2", "safe-regex": "^2.1.1", @@ -12980,9 +12995,9 @@ } }, "regexp-tree": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.16.tgz", - "integrity": "sha512-nXWhGJLTWLNdhWF1uqoXQgAOgv8mQGpgXTOk8BWp08YMOKCtn74VoyOJ+AXZ68Dj50Myd+msYs+aGRBzWJ5dJA==", + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.17.tgz", + "integrity": "sha512-UnOJjFS/EPZmfISmYx+0PcDtPzyFKTe+cZTS5sM5hifnRUDRxoB1j4DAmGwqzxjwBGlwOkGfb2cDGHtjuEwqoA==", "dev": true }, "regexpp": { @@ -14818,15 +14833,6 @@ "spdx-expression-parse": "^3.0.0" } }, - "validate-npm-package-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", - "integrity": "sha1-X6kS2B630MdK/BQN5zF/DKffQ34=", - "dev": true, - "requires": { - "builtins": "^1.0.3" - } - }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", diff --git a/package.json b/package.json index 277da6622d6..273697ff124 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "devDependencies": { "@commitlint/cli": "^8.2.0", "@commitlint/config-conventional": "^8.2.0", - "@ridedott/eslint-config": "^0.4.67", + "@ridedott/eslint-config": "^0.4.72", "@semantic-release/changelog": "^3.0.6", "@semantic-release/exec": "^3.3.8", "@semantic-release/git": "^7.0.18", diff --git a/src/eventHandlers/checkSuite/index.ts b/src/eventHandlers/checkSuite/index.ts index 0030b522f1e..0422967f545 100644 --- a/src/eventHandlers/checkSuite/index.ts +++ b/src/eventHandlers/checkSuite/index.ts @@ -47,7 +47,7 @@ export const checkSuiteHandle = async (octokit: GitHub): Promise => { }); info( - `checkSuiteHandle: PullRequestId: ${pullRequestId}, commitHeadline: ${commitHeadline}.`, + `checkSuiteHandle: PullRequestId: ${pullRequestId as string}, commitHeadline: ${commitHeadline as string}.`, ); if ( diff --git a/src/eventHandlers/pullRequest/index.ts b/src/eventHandlers/pullRequest/index.ts index b80d6292134..41d28e6be56 100644 --- a/src/eventHandlers/pullRequest/index.ts +++ b/src/eventHandlers/pullRequest/index.ts @@ -22,7 +22,7 @@ export const pullRequestHandle = async (octokit: GitHub): Promise => { } = context.payload.repository as PayloadRepository; info( - `pullRequestHandle: PullRequestId: ${pullRequestId}, commitHeadline: ${commitHeadline}.`, + `pullRequestHandle: PullRequestId: ${pullRequestId as string}, commitHeadline: ${commitHeadline as string}.`, ); const { repository: { diff --git a/src/eventHandlers/push/index.ts b/src/eventHandlers/push/index.ts index fab7585567c..06d8872845f 100644 --- a/src/eventHandlers/push/index.ts +++ b/src/eventHandlers/push/index.ts @@ -55,7 +55,7 @@ export const pushHandle = async (octokit: GitHub): Promise => { }); info( - `pushHandle: PullRequestId: ${pullRequestId}, commitHeadline: ${commitHeadline}.`, + `pushHandle: PullRequestId: ${pullRequestId as string}, commitHeadline: ${commitHeadline}.`, ); if ( diff --git a/src/index.ts b/src/index.ts index 5d2da3dd818..2d6afb13fbe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,5 +25,8 @@ const main = async (): Promise => { }; main().catch((error: Error): void => { - setFailed(`An unexpected error occurred: ${error}, ${error.stack}.`); + setFailed( + `An unexpected error occurred: ${error.message}, ${error.stack ?? + 'no stack trace'}.`, + ); });