eslint cleanup

This commit is contained in:
Dane Everitt 2020-07-04 18:30:50 -07:00
parent 922383e232
commit c419d15907
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
37 changed files with 42 additions and 47 deletions

View file

@ -17,7 +17,7 @@ interface Values {
recoveryCode: '',
}
type OwnProps = RouteComponentProps<{}, StaticContext, { token?: string }>
type OwnProps = RouteComponentProps<Record<string, unknown>, StaticContext, { token?: string }>
type Props = OwnProps & {
addError: ActionCreator<FlashStore['addError']['payload']>;

View file

@ -57,7 +57,7 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
.min(8, 'Your new password should be at least 8 characters in length.'),
passwordConfirmation: string()
.required('Your new password does not match.')
.oneOf([ref('password'), null], 'Your new password does not match.'),
.oneOf([ ref('password'), null ], 'Your new password does not match.'),
})}
>
{({ isSubmitting }) => (