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

@@ -74,7 +74,7 @@ export const CopyPasteText: React.FC<{ value: string }> = ({ value }) => {
onBlur={handleBlur}
/>
<button className='button' onClick={handleButtonClick}>
<button className='button' onClick={handleButtonClick} type='button'>
<Icon id='copy' icon={ContentCopyIcon} />{' '}
{copied ? (
<FormattedMessage id='copypaste.copied' defaultMessage='Copied' />