Skip to content

Commit 3c4ea82

Browse files
chore(deps): bump @eslint/compat from 1.1.1 to 1.2.8 (#1216)
* chore(deps): bump @eslint/compat from 1.1.1 to 1.2.8 Bumps [@eslint/compat](https://github.com/eslint/rewrite) from 1.1.1 to 1.2.8. - [Release notes](https://github.com/eslint/rewrite/releases) - [Changelog](https://github.com/eslint/rewrite/blob/main/release-please-config.json) - [Commits](eslint/rewrite@compat-v1.1.1...compat-v1.2.8) --- updated-dependencies: - dependency-name: "@eslint/compat" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * chore(deps): update TypeScript ESLint packages to version ^8.15.0 and related dependencies * refactor(getTagFilters): simplify tag category initialization using nullish coalescing * lint components * fix: update import statements to use 'import type' for TypeScript type imports in session and email routers * refactor: simplify singleton instance initialization using nullish coalescing in logger and session helpers * fix lint in tooling/template * format * type * tooling/build - add eslint config * lint * lint --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: adriangohjw <[email protected]>
1 parent d6a1b7a commit 3c4ea82

File tree

23 files changed

+2625
-8303
lines changed

23 files changed

+2625
-8303
lines changed

apps/studio/src/lib/dates.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ export const formatRelativeTime = (
77
) => {
88
if (date === null || date === undefined) return
99

10-
if (!baseDate) {
11-
baseDate = new Date()
12-
}
10+
baseDate ??= new Date()
1311

1412
let deltaSeconds = (date.getTime() - baseDate.getTime()) / 1000
1513
const isFuture = deltaSeconds > 0 ? true : false

apps/studio/src/lib/logger.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ interface LoggerOptions {
2525
export class PinoLogger {
2626
private static instance?: pino.Logger<string>
2727
private static getInstance() {
28-
if (!PinoLogger.instance)
29-
PinoLogger.instance = PinoLogger.createBaseLogger()
28+
PinoLogger.instance ??= PinoLogger.createBaseLogger()
3029
return PinoLogger.instance
3130
}
3231
private static createBaseLogger = (): pino.Logger<string> => {

apps/studio/tests/common.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { GenericContainer, Wait } from "testcontainers"
55
import { z } from "zod"
66

77
type ContainerType = "database" | "mockpass"
8-
export const CONTAINER_CONFIGURATIONS: {
9-
[key in ContainerType]: ContainerConfiguration
10-
} = {
8+
export const CONTAINER_CONFIGURATIONS: Record<
9+
ContainerType,
10+
ContainerConfiguration
11+
> = {
1112
database: {
1213
name: "database",
1314
image: "postgres:15-alpine",

apps/studio/tests/integration/helpers/iron-session.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ class MockIronStore {
2929
}
3030

3131
static getOrCreateStore(): MockIronStore {
32-
if (!MockIronStore.instance) {
33-
MockIronStore.instance = new MockIronStore()
34-
}
32+
MockIronStore.instance ??= new MockIronStore()
3533
return MockIronStore.instance
3634
}
3735

0 commit comments

Comments
 (0)