Skip to content

Commit 6c6c8dd

Browse files
author
IvanZosimov
committed
Update TypeScript and Prettier
1 parent 45c9f23 commit 6c6c8dd

6 files changed

+28
-27
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.licenses/** -diff linguist-generated=true
1+
.licenses/** -diff linguist-generated=true

.prettierrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"trailingComma": "none",
88
"bracketSpacing": false,
99
"arrowParens": "avoid",
10-
"parser": "typescript"
10+
"parser": "typescript",
11+
"endOfLine": "auto"
1112
}

__tests__/authutil.test.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import path from 'path';
55
const fakeSourcesDirForTesting = path.join(
66
__dirname,
77
'runner',
8-
path.join(
9-
Math.random()
10-
.toString(36)
11-
.substring(7)
12-
),
8+
path.join(Math.random().toString(36).substring(7)),
139
's'
1410
);
1511

package-lock.json

+20-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-dotnet",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"private": true,
55
"description": "setup dotnet action",
66
"main": "lib/setup-dotnet.js",
@@ -41,9 +41,9 @@
4141
"husky": "^8.0.1",
4242
"jest": "^27.2.5",
4343
"jest-circus": "^27.2.5",
44-
"prettier": "^1.19.1",
44+
"prettier": "^2.7.1",
4545
"ts-jest": "^27.0.5",
46-
"typescript": "^3.9.7",
46+
"typescript": "^4.8.4",
4747
"wget-improved": "^3.2.1"
4848
},
4949
"jest": {

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
3636

3737
/* Additional Checks */
38+
"useUnknownInCatchVariables": false, /* Type catch clause variables as 'unknown' instead of 'any'. */
3839
// "noUnusedLocals": true, /* Report errors on unused locals. */
3940
// "noUnusedParameters": true, /* Report errors on unused parameters. */
4041
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */

0 commit comments

Comments
 (0)