Skip to content

Commit 2a44e13

Browse files
authored
chore: Upgrade to TypeScript 5.6, eslint 8, and some more (#400)
1 parent 564310b commit 2a44e13

File tree

141 files changed

+2603
-3630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+2603
-3630
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.husky/pre-push

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ set -euo pipefail
33

44
exec < /dev/tty
55
npm run copy-shared-files
6-
npx lint-staged

.npmrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
link-workspace-packages = true
22
shared-workspace-lockfile = true
3+
hoist = false
4+
5+
# By default, PNPM hoists eslint and prettier to the workspace root, but that may causes issues
6+
# with this workspace, as some samples have completely different versions of these packages, or
7+
# depends on incompatible plugins.
8+
public-hoist-pattern = []
9+
10+
# The monorepo sample uses postcss with an external configuration file that refers to plugins by
11+
# their package name, rather than passing objects. That doesn't work with PNPM's strict node_modules
12+
# structure. To work around this, hoist all postcss-* packages.
13+
# FIXME: Can't we do something equivalent at the project-level instead?
14+
public-hoist-pattern[] = postcss-*

.prettierignore

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
.prettierignore
2-
.husky/
3-
node_modules
4-
build
5-
lib
6-
.next
7-
.vscode
8-
protobufs/protos/json-module.js
9-
protobufs/protos/root.d.ts
10-
.scripts/list-of-samples.json
11-
package-lock.json
12-
pnpm-lock.yaml
1+
# Ignore everything by default, except for the files and folders listed below
2+
*
3+
4+
!.devcontainer/
5+
!.github/
136

14-
nestjs-exchange-rates/dist
7+
!.scripts/
8+
.scripts/list-of-samples.json
159

16-
.github/workflows/ci.yml
17-
dist.css
10+
!./package.json

.scripts/wait-on-temporal.mjs

Lines changed: 0 additions & 40 deletions
This file was deleted.

.shared/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "@tsconfig/node18/tsconfig.json",
3-
"version": "4.4.2",
3+
"version": "5.6.3",
44
"compilerOptions": {
55
"lib": ["es2021"],
66
"declaration": true,

activities-cancellation-heartbeating/package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"scripts": {
66
"build": "tsc --build",
77
"build.watch": "tsc --build --watch",
8+
"format": "prettier --write .",
9+
"format:check": "prettier --check .",
810
"lint": "eslint .",
911
"start": "ts-node src/worker.ts",
1012
"start.watch": "nodemon src/worker.ts",
@@ -26,16 +28,16 @@
2628
"@temporalio/workflow": "^1.11.5"
2729
},
2830
"devDependencies": {
29-
"@tsconfig/node18": "^1.0.3",
31+
"@tsconfig/node18": "^18.2.4",
3032
"@types/node": "^22.9.1",
31-
"@typescript-eslint/eslint-plugin": "^5.0.0",
32-
"@typescript-eslint/parser": "^5.0.0",
33-
"eslint": "^7.32.0",
34-
"eslint-config-prettier": "^8.3.0",
35-
"eslint-plugin-deprecation": "^1.2.1",
36-
"nodemon": "^2.0.12",
37-
"prettier": "^2.8.8",
38-
"ts-node": "^10.2.1",
39-
"typescript": "^4.9.5"
33+
"@typescript-eslint/eslint-plugin": "^8.18.0",
34+
"@typescript-eslint/parser": "^8.18.0",
35+
"eslint": "^8.57.1",
36+
"eslint-config-prettier": "^9.1.0",
37+
"eslint-plugin-deprecation": "^3.0.0",
38+
"nodemon": "^3.1.7",
39+
"prettier": "^3.4.2",
40+
"ts-node": "^10.9.2",
41+
"typescript": "^5.6.3"
4042
}
4143
}

activities-cancellation-heartbeating/src/cancellation-scopes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function cancelTimerAltImpl(): Promise<void> {
5252
// @@@SNIPSTART typescript-handle-external-workflow-cancellation-while-activity-running
5353
export async function handleExternalWorkflowCancellationWhileActivityRunning(
5454
url: string,
55-
data: unknown
55+
data: unknown,
5656
): Promise<void> {
5757
try {
5858
await httpPostJSON(url, data);

activities-cancellation-heartbeating/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "@tsconfig/node18/tsconfig.json",
3-
"version": "4.4.2",
3+
"version": "5.6.3",
44
"compilerOptions": {
55
"lib": ["es2021"],
66
"declaration": true,

activities-dependency-injection/package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"scripts": {
66
"build": "tsc --build",
77
"build.watch": "tsc --build --watch",
8+
"format": "prettier --write .",
9+
"format:check": "prettier --check .",
810
"lint": "eslint .",
911
"start": "ts-node src/worker.ts",
1012
"start.watch": "nodemon src/worker.ts",
@@ -26,16 +28,16 @@
2628
"@temporalio/workflow": "^1.11.5"
2729
},
2830
"devDependencies": {
29-
"@tsconfig/node18": "^1.0.3",
31+
"@tsconfig/node18": "^18.2.4",
3032
"@types/node": "^22.9.1",
31-
"@typescript-eslint/eslint-plugin": "^5.0.0",
32-
"@typescript-eslint/parser": "^5.0.0",
33-
"eslint": "^7.32.0",
34-
"eslint-config-prettier": "^8.3.0",
35-
"eslint-plugin-deprecation": "^1.2.1",
36-
"nodemon": "^2.0.12",
37-
"prettier": "^2.8.8",
38-
"ts-node": "^10.2.1",
39-
"typescript": "^4.9.5"
33+
"@typescript-eslint/eslint-plugin": "^8.18.0",
34+
"@typescript-eslint/parser": "^8.18.0",
35+
"eslint": "^8.57.1",
36+
"eslint-config-prettier": "^9.1.0",
37+
"eslint-plugin-deprecation": "^3.0.0",
38+
"nodemon": "^3.1.7",
39+
"prettier": "^3.4.2",
40+
"ts-node": "^10.9.2",
41+
"typescript": "^5.6.3"
4042
}
4143
}

0 commit comments

Comments
 (0)