Upgrade eslint-plugin-matrix-org to 1.2.1
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
This commit is contained in:
@@ -68,7 +68,7 @@ export const RegisterPage: FC = () => {
|
||||
|
||||
if (password !== passwordConfirmation) return;
|
||||
|
||||
const submit = async () => {
|
||||
const submit = async (): Promise<void> => {
|
||||
setRegistering(true);
|
||||
|
||||
const recaptchaResponse = await execute();
|
||||
@@ -183,7 +183,7 @@ export const RegisterPage: FC = () => {
|
||||
required
|
||||
name="password"
|
||||
type="password"
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>): void =>
|
||||
setPassword(e.target.value)
|
||||
}
|
||||
value={password}
|
||||
@@ -197,7 +197,7 @@ export const RegisterPage: FC = () => {
|
||||
required
|
||||
type="password"
|
||||
name="passwordConfirmation"
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>): void =>
|
||||
setPasswordConfirmation(e.target.value)
|
||||
}
|
||||
value={passwordConfirmation}
|
||||
|
||||
Reference in New Issue
Block a user