Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ export default tseslint.config(
// Type-checked rules from recommendedTypeChecked that are too noisy
// for the current codebase — kept off to preserve parity with the
// previous eslint-config-standard-with-typescript baseline.
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-return': 'warn',
'@typescript-eslint/no-unsafe-enum-comparison': 'warn',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/require-await': 'off',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,15 +431,15 @@ export function ErrorDetailsDialog({
</Box>
)}
{renderHighlightedObject(
parentContextData as JSONValue,
parentContextData,
null,
null,
)}
</Box>
);
}
return renderHighlightedObject(
parentContextData as JSONValue,
parentContextData,
lastPointerSegment ?? null,
lastArrayIndex,
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/api-auth-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const generateAuthMiddlewareWithToken = (
userContextJwt?: string,
): Middleware => {
return {
async onRequest(req) {
onRequest(req) {
// Always attach the bearer token for IAP/GCIP.
req.headers.set('Authorization', `Bearer ${accessToken}`);

Expand Down
2 changes: 1 addition & 1 deletion src/app/services/profile-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const sendEmailVerification = async (): Promise<void> => {
/**
* Return the current user or null if the user is not logged in.
*/
export const getUserFromSession = async (): Promise<User | null> => {
export const getUserFromSession = (): User | null => {
const currentUser = app.auth().currentUser;
if (currentUser === null) {
return null;
Expand Down
6 changes: 3 additions & 3 deletions src/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ export enum LicenseErrorSource {
}

export interface ProfileError {
code: string | 'unknown';
code: string;
message: string;
source?: ProfileErrorSource;
}

export interface FeedError {
code: string | 'unknown';
code: string;
message: string;
source?: FeedErrorSource;
}

export interface LicenseError {
code: string | 'unknown';
code: string;
message: string;
source?: LicenseErrorSource;
}
Expand Down
14 changes: 6 additions & 8 deletions src/app/utils/precompute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ export interface PrecomputeDeps {
}

/** Small helper: wait once for a map event */
async function once(map: maplibregl.Map, ev: string): Promise<void> {
await new Promise<void>(
// eslint-disable-next-line no-async-promise-executor
async (resolve) =>
await map.once(ev, () => {
resolve();
}),
);
function once(map: maplibregl.Map, ev: string): Promise<void> {
return new Promise<void>((resolve) => {
map.once(ev, () => {
resolve();
});
});
}

// Extend helpers for [minLng,minLat,maxLng,maxLat]
Expand Down