From 6c6c8ddba485d16e64f3e0c0853ef44d83dc475b Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Fri, 7 Oct 2022 12:04:40 +0200 Subject: [PATCH] Update TypeScript and Prettier --- .gitattributes | 2 +- .prettierrc.json | 3 ++- __tests__/authutil.test.ts | 6 +----- package-lock.json | 37 ++++++++++++++++++++----------------- package.json | 6 +++--- tsconfig.json | 1 + 6 files changed, 28 insertions(+), 27 deletions(-) diff --git a/.gitattributes b/.gitattributes index 541fd55..f6ac05f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -.licenses/** -diff linguist-generated=true \ No newline at end of file +.licenses/** -diff linguist-generated=true diff --git a/.prettierrc.json b/.prettierrc.json index f6736bc..ca09262 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -7,5 +7,6 @@ "trailingComma": "none", "bracketSpacing": false, "arrowParens": "avoid", - "parser": "typescript" + "parser": "typescript", + "endOfLine": "auto" } \ No newline at end of file diff --git a/__tests__/authutil.test.ts b/__tests__/authutil.test.ts index ce02533..595682e 100644 --- a/__tests__/authutil.test.ts +++ b/__tests__/authutil.test.ts @@ -5,11 +5,7 @@ import path from 'path'; const fakeSourcesDirForTesting = path.join( __dirname, 'runner', - path.join( - Math.random() - .toString(36) - .substring(7) - ), + path.join(Math.random().toString(36).substring(7)), 's' ); diff --git a/package-lock.json b/package-lock.json index 5459e0f..2e0c4fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "setup-dotnet", - "version": "3.0.1", + "version": "3.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "setup-dotnet", - "version": "3.0.1", + "version": "3.0.2", "license": "MIT", "dependencies": { "@actions/core": "^1.9.1", @@ -26,9 +26,9 @@ "husky": "^8.0.1", "jest": "^27.2.5", "jest-circus": "^27.2.5", - "prettier": "^1.19.1", + "prettier": "^2.7.1", "ts-jest": "^27.0.5", - "typescript": "^3.9.7", + "typescript": "^4.8.4", "wget-improved": "^3.2.1" } }, @@ -3883,15 +3883,18 @@ } }, "node_modules/prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true, "bin": { "prettier": "bin-prettier.js" }, "engines": { - "node": ">=4" + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/pretty-format": { @@ -4430,9 +4433,9 @@ } }, "node_modules/typescript": { - "version": "3.9.7", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz", - "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -7723,9 +7726,9 @@ "dev": true }, "prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true }, "pretty-format": { @@ -8123,9 +8126,9 @@ } }, "typescript": { - "version": "3.9.7", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz", - "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true }, "universal-user-agent": { diff --git a/package.json b/package.json index b58554c..6aeb3a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-dotnet", - "version": "3.0.1", + "version": "3.0.2", "private": true, "description": "setup dotnet action", "main": "lib/setup-dotnet.js", @@ -41,9 +41,9 @@ "husky": "^8.0.1", "jest": "^27.2.5", "jest-circus": "^27.2.5", - "prettier": "^1.19.1", + "prettier": "^2.7.1", "ts-jest": "^27.0.5", - "typescript": "^3.9.7", + "typescript": "^4.8.4", "wget-improved": "^3.2.1" }, "jest": { diff --git a/tsconfig.json b/tsconfig.json index 5adbcc5..8bd57d4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,6 +35,7 @@ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ /* Additional Checks */ + "useUnknownInCatchVariables": false, /* Type catch clause variables as 'unknown' instead of 'any'. */ // "noUnusedLocals": true, /* Report errors on unused locals. */ // "noUnusedParameters": true, /* Report errors on unused parameters. */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */