mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
Update prettier to latest. Remove tslint (#1641)
* Rev up prettier * Reformat * Remove deprecated tslint * Remove call to tslint and update package-lock.json
This commit is contained in:
@@ -25,7 +25,7 @@ export async function fetchSubscriptions(accessToken: string): Promise<Subscript
|
||||
}
|
||||
nextLink = result.nextLink;
|
||||
const validSubscriptions = result.value.filter(
|
||||
(sub) => sub.state === "Enabled" || sub.state === "Warned" || sub.state === "PastDue"
|
||||
(sub) => sub.state === "Enabled" || sub.state === "Warned" || sub.state === "PastDue",
|
||||
);
|
||||
subscriptions = [...subscriptions, ...validSubscriptions];
|
||||
}
|
||||
@@ -35,7 +35,7 @@ export async function fetchSubscriptions(accessToken: string): Promise<Subscript
|
||||
export function useSubscriptions(armToken: string): Subscription[] | undefined {
|
||||
const { data } = useSWR(
|
||||
() => (armToken ? ["subscriptions", armToken] : undefined),
|
||||
(_, armToken) => fetchSubscriptions(armToken)
|
||||
(_, armToken) => fetchSubscriptions(armToken),
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user