Add new ESLint rule requiring explicit button types (#36738)
This commit is contained in:
37 files changed
+101
-26
No files matched your search
@@ -381,6 +381,7 @@ const LoginForm: React.FC<{
|
||||
className={classNames('search__popout__menu__item', {
|
||||
selected: selectedOption === i,
|
||||
})}
|
||||
type='button'
|
||||
>
|
||||
{option
|
||||
.split(domainRegExp)
|
||||
@@ -451,7 +452,7 @@ const InteractionModal: React.FC<{
|
||||
);
|
||||
} else {
|
||||
signupButton = (
|
||||
<button className='link-button' onClick={handleSignupClick}>
|
||||
<button className='link-button' onClick={handleSignupClick} type='button'>
|
||||
<FormattedMessage
|
||||
id='sign_in_banner.create_account'
|
||||
defaultMessage='Create account'
|
||||
|
||||
Reference in new issue
Block a user