Add new ESLint rule requiring explicit button types (#36738)
This commit is contained in:
37 files changed
+101
-26
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ export const NotificationAnnualReport: React.FC<{
|
||||
values={{ year }}
|
||||
/>
|
||||
</p>
|
||||
<button onClick={handleClick} className='link-button'>
|
||||
<button onClick={handleClick} className='link-button' type='button'>
|
||||
<FormattedMessage
|
||||
id='notification.annual_report.view'
|
||||
defaultMessage='View #Wrapstodon'
|
||||
|
||||
@@ -50,6 +50,7 @@ const BarButton: React.FC<
|
||||
className={selectedFilter === type ? 'active' : ''}
|
||||
onClick={onClick}
|
||||
title={title}
|
||||
type='button'
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
|
||||
@@ -245,6 +245,7 @@ export const Notifications: React.FC<{
|
||||
title={intl.formatMessage(messages.markAsRead)}
|
||||
onClick={handleMarkAsRead}
|
||||
className='column-header__button'
|
||||
type='button'
|
||||
>
|
||||
<Icon id='done-all' icon={DoneAllIcon} />
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user