mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Update eslint config to flat config
Since the legacy config is being deprecated at the end of 2024, we should start moving to the eslint flat config. I avoided the tseslint config helper function so we avoid wrapping magic. This seems to have triggered more checking since any checks in svelte files have appeared and the $$Generic type that is being deprecated had to be rewritten. Also fixes some any types that weren't caught previously
This commit is contained in:
@@ -73,3 +73,15 @@ export function handleError(
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export function unreachableError(): NotFoundRoute | ErrorRoute {
|
||||
return {
|
||||
resource: "error",
|
||||
params: {
|
||||
error: undefined,
|
||||
title: "Could not load this route",
|
||||
description:
|
||||
"You stumbled on an unknown error, we aren't exactly sure what happened.",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user