fix(core): Revert rule @typescript-eslint/prefer-nullish-coalescing

This commit is contained in:
Michael Kret
2023-01-19 14:37:19 +02:00
committed by GitHub
parent 9b032d68bc
commit e667df783c
190 changed files with 293 additions and 292 deletions

View File

@@ -65,7 +65,7 @@ function endpointCtxExpr(ctx: ICtx, endpoint: string): string {
return endpoint.replace(
/({{ *(access_token|dtable_uuid|server) *}})/g,
(match: string, expr: string, name: TEndpointVariableName) => {
return endpointVariables[name] ?? match;
return endpointVariables[name] || match;
},
);
}
@@ -94,7 +94,7 @@ export async function seaTableApiRequest(
method,
qs,
body,
uri: url ?? `${resolveBaseUri(ctx)}${endpointCtxExpr(ctx, endpoint)}`,
uri: url || `${resolveBaseUri(ctx)}${endpointCtxExpr(ctx, endpoint)}`,
json: true,
};