Add new ESLint rule requiring explicit button types (#36738)

This commit is contained in:
Echo authored and GitHub committed 2025-11-05 15:11:04 +00:00
1 parent 1a31c412ca
commit 6337e036f3
37 files changed
+101 -26

No files matched your search

@@ -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>