Skip to content

Commit 5a0b5f9

Browse files
committed
Fix ESLint linting errors related to plugin:@typescript-eslint/strict-type-checked
1 parent 0307f9b commit 5a0b5f9

File tree

32 files changed

+87
-62
lines changed

32 files changed

+87
-62
lines changed

scripts/stack/_lib/utils/docker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ export function getDockerContainerHealthStatus(containerName) {
4040
.trim()
4141
);
4242
} catch (e) {
43+
const error = /** @type {Error} */ (e);
4344
throw new Error(
44-
`Failed to get health status of ${containerName} container: ${e}`,
45+
`Failed to get health status of ${containerName} container: ${error.message}`,
4546
);
4647
}
4748

scripts/stack/local/all/api/down.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { DOCKER_COMPOSE_FILES, ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/all/e2e/down.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { DOCKER_COMPOSE_FILES, ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra-app/playwright/down.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { DOCKER_COMPOSE_FILES, ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra-app/stack-only/down.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { DOCKER_COMPOSE_FILES, ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra/playwright/down.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { DOCKER_COMPOSE_FILES, MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra/stack-only/app.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra/stack-only/down.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { DOCKER_COMPOSE_FILES, MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra/stack-only/migrate.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

scripts/stack/local/infra/stack-only/seed.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { getPaths } from '../../../_lib/utils/paths.js';
88
import { MANDATORY_ENV_VARS } from '../_lib/constants.js';
99
import { ENV_FILE } from './_lib/constants.js';
1010

11-
main().catch((e) => {
11+
try {
12+
main();
13+
} catch (e) {
1214
console.error(e);
1315
process.exit(1);
14-
});
16+
}
1517

16-
async function main() {
18+
function main() {
1719
const scriptPath = /** @type {string} */ (process.argv[1]);
1820

1921
const paths = getPaths(scriptPath, ENV_FILE);

0 commit comments

Comments
 (0)