manual fixes, disable some errors
This commit is contained in:
@@ -38,6 +38,10 @@
|
|||||||
"node_modules",
|
"node_modules",
|
||||||
"dist",
|
"dist",
|
||||||
"packages/website/public/api"
|
"packages/website/public/api"
|
||||||
]
|
],
|
||||||
|
"rules": {
|
||||||
|
"@typescript-eslint/no-non-null-assertion": "warn",
|
||||||
|
"@typescript-eslint/require-await": "off"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export async function retryWithTimeout<T>(
|
|||||||
callback: () => Promise<T> | T,
|
callback: () => Promise<T> | T,
|
||||||
): Promise<T> {
|
): Promise<T> {
|
||||||
const startTime = Date.now()
|
const startTime = Date.now()
|
||||||
// eslint-disable-next-line no-constant-condition
|
// eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
return await callback()
|
return await callback()
|
||||||
|
|||||||
@@ -18,5 +18,6 @@ export async function waitFor<Result>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
||||||
throw lastError ?? new Error("Timeout")
|
throw lastError ?? new Error("Timeout")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,6 +374,8 @@ function getDiscordMessageOptions(reacordOptions: MessageOptions) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// future proofing
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
if (component.type === "select") {
|
if (component.type === "select") {
|
||||||
return {
|
return {
|
||||||
...component,
|
...component,
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ for (const [, channel] of category.children.cache) {
|
|||||||
let prefix = 0
|
let prefix = 0
|
||||||
const createTest = async (
|
const createTest = async (
|
||||||
name: string,
|
name: string,
|
||||||
block: (channel: TextChannel) => void | Promise<unknown>,
|
block: (channel: TextChannel) => unknown,
|
||||||
) => {
|
) => {
|
||||||
prefix += 1
|
prefix += 1
|
||||||
const channel = await category.children.create({
|
const channel = await category.children.create({
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export function LandingAnimation() {
|
|||||||
let running = true
|
let running = true
|
||||||
|
|
||||||
void (async () => {
|
void (async () => {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
while (running) {
|
while (running) {
|
||||||
setState(defaultState)
|
setState(defaultState)
|
||||||
await delay(700)
|
await delay(700)
|
||||||
@@ -102,6 +103,7 @@ export function LandingAnimation() {
|
|||||||
let running = true
|
let running = true
|
||||||
|
|
||||||
void (async () => {
|
void (async () => {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
while (running) {
|
while (running) {
|
||||||
// check if the cursor is in the input
|
// check if the cursor is in the input
|
||||||
const cursorRect = cursorRef.current!.getBoundingClientRect()
|
const cursorRect = cursorRef.current!.getBoundingClientRect()
|
||||||
|
|||||||
Reference in New Issue
Block a user