{ | |
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | |
"extends": [ | |
"config:recommended" | |
], | |
"prHourlyLimit": 3, | |
"packageRules": [ | |
{ | |
"matchUpdateTypes": ["major"], | |
"dependencyDashboardApproval": true |
{ | |
"$schema": "https://json.schemastore.org/tsconfig", | |
"display": "Base", | |
"compilerOptions": { | |
"lib": ["dom", "dom.iterable", "esnext"], | |
"allowJs": false, | |
"allowUnusedLabels": false, | |
"allowUnreachableCode": false, | |
"skipLibCheck": true, | |
"strict": true, |
In a recent episode of the podcast Six Feet Under with Mark Calaway, WWE legend The Undertaker shared his thoughts on the infamous Montreal Screwjob. He offered a unique perspective on the controversial incident that occurred during the 1997 Survivor Series.
The Undertaker acknowledged the unfortunate nature of the event. He stated, "As mad as I was about it... at the end of the day, I don't know that there was any choice." He emphasized the high-stakes nature of the 'Monday Night Wars.' He explained that WWE couldn't risk their champion appearing on rival World Championship Wrestling programming.
Despite the controversy, The Undertaker praised Bret Hart as "a really good friend" and lauded his in-ring abilities. He regretted that the Montreal Screwjob overshadows the careers of both Hart and Shawn Michaels.
The Deadman also revealed the impact Hart had on his career. He stated, "I grew
import { describe, expect, it } from "vitest"; | |
import { removeTimezoneOffset } from "."; | |
describe("removeTimezoneOffset", () => { | |
it("should remove timezone offset in format -07:00", () => { | |
const dateTime = "2024-06-15T17:30:00-07:00"; | |
const expected = "2024-06-15T17:30:00"; | |
expect(removeTimezoneOffset(dateTime)).toBe(expected); | |
}); |
{ | |
"recommendations": [ | |
"aaron-bond.better-comments", | |
"dbaeumer.vscode-eslint", | |
"esbenp.prettier-vscode", | |
"mgmcdermott.vscode-language-babel", | |
"streetsidesoftware.code-spell-checker", | |
"usernamehw.errorlens", | |
"vivaxy.vscode-conventional-commits" | |
] |
export function isNotNullOrUndefinedOrEmpty<T>( | |
value: T | null | undefined, | |
): value is T { | |
switch (true) { | |
case value === null || value === undefined: | |
return false; | |
case typeof value === 'string': | |
return value.trim() !== ''; | |
case Array.isArray(value): | |
return value.length > 0; |
// Merges additional properties into an object, ensuring type consistency. | |
export const mergeProperties = <T, U>( | |
originalObject: T, | |
additionalProps: U, | |
): T & U => { | |
return { ...originalObject, ...additionalProps }; | |
}; |
import { type ZodError } from 'zod'; | |
export const stringifyZodError = (error: ZodError): string => { | |
return error.issues | |
.map((issue) => { | |
const path = issue.path.join('.'); | |
const message = issue.message; | |
return `Currently facing issue with the field "${path}". ${message}`; | |
}) | |
.join('\n'); |