fix: manually fix new eslint bugs

This commit is contained in:
Thomas Osmonson
2020-07-08 15:50:37 -05:00
committed by Thomas Osmonson
parent c84c8933ce
commit 7650b7a753
4 changed files with 5 additions and 10 deletions

View File

@@ -28,8 +28,7 @@ export const useWallet = () => {
};
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
fetchSecretKey();
void fetchSecretKey();
}, [onboardingSecretKey]);
return { identities, firstIdentity, wallet, secretKey, isRestoringWallet, isSignedIn };

View File

@@ -34,7 +34,6 @@ export const authenticate = async ({
}: AuthOptions) => {
if (!userSession) {
const appConfig = new AppConfig(['store_write'], document.location.href);
// eslint-disable-next-line no-param-reassign
userSession = new UserSession({ appConfig });
}
if (userSession.isUserSignedIn()) {
@@ -127,8 +126,7 @@ const setupListener = ({ popup, authRequest, finished, authURL, userSession }: L
};
const receiveMessageCallback = (event: MessageEvent) => {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
receiveMessage(event);
void receiveMessage(event);
};
window.addEventListener('message', receiveMessageCallback, false);

View File

@@ -42,8 +42,7 @@ export const useConnect = () => {
sendToSignIn: true,
};
doStartAuth();
// eslint-disable-next-line @typescript-eslint/no-floating-promises
authenticate(options);
void authenticate(options);
return;
}
authOptions && doUpdateAuthOptions(authOptions);
@@ -55,8 +54,7 @@ export const useConnect = () => {
};
const doAuth = (options: Partial<AuthOptions> = {}) => {
doStartAuth();
// eslint-disable-next-line @typescript-eslint/no-floating-promises
authenticate({
void authenticate({
...authOptions,
...options,
finished: payload => {

View File

@@ -158,7 +158,7 @@ export const registerSubdomain = async ({
zoneFile,
identity,
});
// eslint-disable-next-line require-atomic-updates
identity.defaultUsername = fullUsername;
identity.usernames.push(fullUsername);
return identity;